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

Cannot find module in sveltekit project #86

Closed
stnguyen90 opened this issue May 8, 2024 · 0 comments
Closed

Cannot find module in sveltekit project #86

stnguyen90 opened this issue May 8, 2024 · 0 comments
Assignees

Comments

@stnguyen90
Copy link
Contributor

stnguyen90 commented May 8, 2024

I wanted to try this out in my sveltekit project and get this error when using the rc.4:

image

Looking into the index.mjs file, it seems like every import is without a .mjs extension so that it doesn't get resolved.
Adding these file extensions manually fixes the issue.
Is this a tsconfig/package.json/vite config error, so that the wrong file gets looked up, or do those .mjs extensions have to be added?

Originally posted by @eweren in #72 (comment)

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