-
-
Notifications
You must be signed in to change notification settings - Fork 79
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
Error: Cannot find module 'typesafe-i18n/formatters' #71
Comments
This seems like an issue within |
I assume the error happens because |
vite does not resolve |
I opened an Issue in the Workaround:
Then you should be able to run your application again. |
Hi, I'm experiencing this issue after upgrading to npm v7 with Jest. Using After using
When I rename the .cjs file to .js, it works fine. Using the following:
|
^regarding the above, I needed a quick fix so I did the following:
|
Thanks @aelesia for providing a solution. As far as I can tell, "older" npm packages don't always resolve files correctly. I think I have configured the package resolving correct, but maybe I have missed something that can be added to support additional frameworks? If someone has additional input to this question, I would be happy :) |
Having a similar issue with Jest. I think it might be worth restructuring how the package is imported (not exactly sure how though) |
@mullwaden have you tried the experimental ESM Support? |
Hmm not sure I want to add experimental flags, its a pretty big setup we have. In our case it was the import of the locale detection that was causing issues. I set it to only generate types and made my own base file as we are not using that feature anyway:
|
Good solution! I have found a few issues on that topic. There are also mentioned a few workarounds, but I haven't checkt if any of these work. |
The issue vitejs/vite#4452 was fixed in Regarding the issue with |
Closing this issue since the original issue was resolved a few months ago. |
Now the error appears in developer mode.
"typesafe-i18n": "^2.36.0"
"@sveltejs/kit": "^1.0.0-next.138",
The text was updated successfully, but these errors were encountered: