-
-
Notifications
You must be signed in to change notification settings - Fork 60
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
./node_modules/@phosphor-icons/react/dist/lib/context.mjs Can't import the named export 'createContext' from non EcmaScript module (only default export is available) #89
Comments
@rektdeckard Sorry to bother, but do you have any update on this bug ? |
Any update on this bug? Any solution? facing the same problem with exact same error message and configuration. |
@shreyas-aw I assume this is a Nextjs app, because Vercel and thats the only kind of bug reports we get here anymore. Can you share your Next version and example of usage? Are you using the |
A minimal reproduction would be appreciated. |
@rektdeckard Am using "@phosphor-icons/react": "^2.0.5" csr and using react for frontend... |
I solved the issue, the problem was with my package.json using react script version 3.4+, I updated it to version 5.+ and it worked |
@anu2308, I am already pointing to |
Sorry @rektdeckard, it is a react app. |
anyone has solved this problem? I'm facing the same issue here. React App v17, Node v16. Only the legacy version (phosphor-react import) is working. |
Describe the bug
Unable to build the project after doing npm install with latest build v2.1.4
Steps to Reproduce
Install v2.1.4 and try to run react project you will find the issue in console
./node_modules/@phosphor-icons/react/dist/lib/context.mjs
Can't import the named export 'createContext' from non EcmaScript module (only default export is available)
Expected behavior
No error should be reported in console or in browser. It should work as normal.
Screenshots
Context (please complete the following information):
The text was updated successfully, but these errors were encountered: