sweetalert2 / sweetalert2-react-content

Official SweetAlert2 enhancer adding support for React elements as content
MIT License
689 stars 47 forks source link

Can't resolve 'react-dom/client' in '/node_modules/sweetalert2-react-content/dist' #235

Closed ZeeshanAhmadKhalil closed 1 year ago

ZeeshanAhmadKhalil commented 1 year ago

It was working fine before but now giving this error after running the apps through the following commands

yarn install yarn start

Also updated my packages to the following version but still getting this error :/

"sweetalert2": "^11.6.15", "sweetalert2-react-content": "^5.0.7"

Node js version v14.18.1

Yarn version 1.22.19

limonte commented 1 year ago

I recommend checking yarn warnings when installing/updating packages. Yarn would notify you about the wrong/missing react-dom package.

https://github.com/sweetalert2/sweetalert2-react-content/blob/main/package.json#L44

ZeeshanAhmadKhalil commented 1 year ago

For time being switched to sweetalert but will try the above solution as well.