Can't resolve 'react-dom/client'
titanve opened this issue ยท 3 comments
Help us help you! Have you looked for similar issues? Do you have reproduction steps? Contributing Guide
Steps to reproduce
install the dependency
(Guidelines for creating a bug report are available
here)
Expected behavior
find the dependency
Actual behavior
throws the error:
Module not found: Error: Can't resolve 'react-dom/client' in '/Sites/app/node_modules/react_ujs/react_ujs/src'
System configuration
- Shakapacker or Sprockets version:
- React-Rails version:
2.7.1 - Rect_UJS version:
2.7.1 - Rails version:
6.1.7.3 - Ruby version:
3.0.5
throws the error:
Module not found: Error: Can't resolve 'react-dom/client' in '/Users/rafa.mora/Sites/auth_manager/node_modules/react_ujs/react_ujs/src'
whe compiling with webpack
This issue was covered in the README file.
What dependency did you install to fix that was missing in the documentation?
@ahangarha hi,
Yes, you are right, my comment does not fix the issue. I will follow the README file suggestion. I will post here the results.
Thank you so much.
@ahangarha your suggestion worked like a charm! thank you so much!