[CRA v4] Can't import the named export 'cloneElement' from non EcmaScript module. PLEASE UPGRADE YOUR CRA VERSION 😿
See original GitHub issueDo you want to request a feature or report a bug?
A Bug
What is the current behavior?
v9.0.4 seems to add a breaking change .
My setup works with V9.0.3, but when updating to V9.0.4 react scripts refuse to build
./node_modules/react-toastify/dist/react-toastify.esm.mjs
Can't import the named export 'cloneElement' from non EcmaScript module (only default export is available)
Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?
React 17.0.1 react-scripts 4.0.1 ( with typescript )
Issue Analytics
- State:
- Created a year ago
- Reactions:35
- Comments:50 (10 by maintainers)
Top Results From Across the Web
Can't import the named export 'cloneElement' from non ...
I had the same problem, I just downgrade the version of react-toastify from 9.0.8 to 8.0.0 and then re-runned the repo and it...
Read more >can't import the named export 'cloneelement' from ... - You.com
'cloneElement' from non EcmaScript module (only default export is available) Solution 1: Try by downgrade the version of toastify. In your package.json file-" ......
Read more >[CRA v4] Can't import the named export 'cloneElement' from ...
[CRA v4] Can't import the named export 'cloneElement' from non EcmaScript module. PLEASE UPGRADE YOUR CRA VERSION.
Read more >Can't import the named export from non EcmaScript module
Hi My site name is stupefied-lamarr-20c8d9 On the server side of my app I have lambda functions and within those I'm using apollo-server-lambda...
Read more >Code-Splitting - React
This bundle can then be included on a webpage to load an entire app at once. Example. App: // app.js import { add...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Exact same issue for me.
I’ve also found this solution, for those who cannot migrate to v5 https://github.com/reactioncommerce/reaction-component-library/issues/399#issuecomment-467860022