Skip to content
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

Could not find a declaration file for module 'bigger-picture/svelte' #48

Closed
bugproof opened this issue Oct 19, 2024 · 1 comment
Closed

Comments

@bugproof
Copy link

bugproof commented Oct 19, 2024

image

image

This import doesn't work somehow... When I import just 'bigger-picture' it works fine.

@henrygd
Copy link
Owner

henrygd commented Oct 20, 2024

Looks like it's because .svelte-kit/tsconfig.json changed compilerOptions.moduleResolution from node (which I think is the default and what older SvelteKit versions used) to bundler.

You can fix it for now by adding "moduleResolution": "node" to compilerOptions in tsconfig.json. Doesn't seem to break anything.

I'll add a fix for it when I have a couple hours free time to read about obscure typescript / package.json rules and conflicts 😀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants