fkhadra / react-toastify

React notification made easy 🚀 !
https://fkhadra.github.io/react-toastify/introduction
MIT License
12.65k stars 698 forks source link

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

Closed thib3113 closed 1 year ago

thib3113 commented 2 years ago

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 )

jessewriter commented 1 year ago

still an issue with ^9.1.1

thib3113 commented 1 year ago

@jessewriter this issue will not be fixed : https://github.com/fkhadra/react-toastify/issues/775#issuecomment-1295370846

ASADRAZAASCEND commented 5 months ago

Still facing the same issue in node v22.1.0. there error is "133.0 ./node_modules/react-toastify/dist/react-toastify.esm.mjs 133.0 Can't import the named export 'cloneElement' from non EcmaScript module (only default export is available)".