Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't import the named export 'cloneElement' from non EcmaScript module

i have the same issue and i have used create-react-app my react-toastify version is ^9.0.8. please help me Here is the full message: ./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)

like image 624
pranoy sarker Avatar asked Jun 04 '26 19:06

pranoy sarker


1 Answers

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 started working

like image 119
lexx chape Avatar answered Jun 06 '26 08:06

lexx chape