-
-
Notifications
You must be signed in to change notification settings - Fork 275
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
Getting module not found error on versions after 0.7.4 #231
Comments
Can you provide a demo with a reproduction? |
Hi, I actually was struggling with a similar issue today. I think is just an issue with older This issue is can be resolved by adding:
back to It would be great if these fields could be added back to support older apps. |
I have updated the react version to 18 as well, still facing the same issue. @cyu2019 Thanks for pointing these, And it worked. I have also tried the following format, it is working. "type": "module",
"exports": "./dist/index.js",
"types": "./dist/index.d.ts", |
Same issue here. |
I second that. Found the same issue in a Otherwise
|
As a fix import it like this import { Toaster } from 'sonner/dist'; |
Same issue as @konstantinkreft in a Vite |
Same issue here. |
For me, installing direcly from npm, the entry
|
The text was updated successfully, but these errors were encountered: