question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[CRA v4] Can't import the named export 'cloneElement' from non EcmaScript module. PLEASE UPGRADE YOUR CRA VERSION 😿

See original GitHub issue

Do 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:closed
  • Created a year ago
  • Reactions:35
  • Comments:50 (10 by maintainers)

github_iconTop GitHub Comments

14reactions
Roblochecommented, Jun 8, 2022

Exact same issue for me.

9reactions
fkhadracommented, Jun 8, 2022

I’ve also found this solution, for those who cannot migrate to v5 https://github.com/reactioncommerce/reaction-component-library/issues/399#issuecomment-467860022

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found