-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Svelte Kit can't find @beyonk/svelte-mapbox #45
Comments
Mm... not entirely sure how Svelte Kit threats @ at the beginning of import but it seems when I did import from Somehow as i got:
|
So we're back in |
I was wondering the same thing -- but I used this path instead (which appears to work -- but not sure if its a good method)
I remember reading somewhere (smelte) that the above maybe more effecient anyway for vite to build later? Not sure -- As for the fastq that is solved (another issue already) via the svelte.config.cjs vite options:
|
Thank you. I have rune with similar issue with Swiper and this direct.svelte import did the trick for SvelteKit and SSR. TBH I have noticed that good reference for similar issues are ones faced by Sapper people. |
TBH I have no clue what is the source of the problem && it seems a bit awkward, but let me ask anyway...
Initially been struggling with #44 but after tweaking optimizeDeps as adviced it went away. So far so good.
But right now it seems an app doesn't see
@beyonk/svelte-mapbox
at all... Installed it as a dev dependency using both yarn and npm, removed node_modules & locks, reinstalled, upgraded all deps, did it once again - same thing over and over again.Constantly getting
Cannot find module '@beyonk/svelte-mapbox'
.I am really puzzled... Any ideas?
The text was updated successfully, but these errors were encountered: