-
Notifications
You must be signed in to change notification settings - Fork 32
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
Module not found error with sveltekit and typescript #47
Comments
Hi @Jakeii, Indeed there is an error. I am on it. |
Changing all imports to include the file extensions seemed to fix it, not sure why, or if it breaks anything else though. |
Why do you mean by "to include the file extensions"? That might be a error caused by a change in how vite resolve its dependencies. |
Inside the svelte-forms module I changed all imports to include '.js' and it fixed the issue. |
That's interesting! Thanks for your feedback |
hey again @chainlist, have dug into this a bit. So I think svelte-forms should be including the '.js' according to the ES6 import spec. I think the reason it was working before was because vite was using commonjs to load ssr modules. It broke in 2.7.0 when vitejs/vite#5197 added native support for 'import' for ssr. |
Thanks for you digging! I'm on it! Tests need fixing with the new imports, but a new version is going to get released soon |
Issue has been fixed in the latest version Thanks for your precious help, it saved me a lot of investigation time! Much appreciated! |
I'm still having this issue, with the latest version. Any idea why? #55 |
Same... It comes up only when I refresh the page. The first load with the form works, but if I refresh the browser, it throws an error.. any suggestions? |
Getting the following error with [email protected] and @sveltejs/[email protected]
can be reproduced by creating a new sveltekit project using
npm init svelte@next my-app
, installing, opting to use typescript and trying to usesvelte-forms
The text was updated successfully, but these errors were encountered: