segmentio / evergreen

🌲 Evergreen React UI Framework by Segment
https://evergreen.segment.com
MIT License
12.38k stars 830 forks source link

Module not found: Error: Can’t resolve ‘react-dom/client’ in 'node_modules/evergreen-ui/esm/toaster/src’ #1593

Open brandongregoryscott opened 1 year ago

brandongregoryscott commented 1 year ago

Some internal users have reported a warning from the dynamic import of react-dom/client in the Toaster component that was added in #1494. It seems to still "work", but I'm not super familiar with esm - perhaps we should roll this change back and deal with the original ReactDOM.render warning.

anshviyogi commented 10 months ago

Try "npm i react-dom/client -f"