Exporting a svelte route that depends on lib #547
-
|
I am trying to export a svelte route that depends on something in $lib/components like this: │ WARN routes/pricing-table depends on local dependency lib/components which doesn't exist require-local-dependency-exists The block I am using exists inside the jsrepo-maifest.json and can be imported as well. I disabled the require-local-dependency-exists error, but when I try to import the route in another sveltekit project I get this error: Not sure If i am missing something here. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
|
So trying this out myself this is one of the awkward things about jsrepo that should probably be fixed... It doesn't handle having nested routes like this that depend on each-other very well. I would recommend keeping your project structure as simple as possible to minimize this. I will open a PR on your repo to show you what I mean. |
Beta Was this translation helpful? Give feedback.
-
|
I opened https://github.com/simonhackler/svelte-stripe-table/pull/1/files I will try and take a look at situations like this when I have the chance |
Beta Was this translation helpful? Give feedback.
So trying this out myself this is one of the awkward things about jsrepo that should probably be fixed...
It doesn't handle having nested routes like this that depend on each-other very well.
I would recommend keeping your project structure as simple as possible to minimize this. I will open a PR on your repo to show you what I mean.