Unable to resolve module `react-dom`
See original GitHub issueHi,
When i try to install react burger menu using “npm install --save react-burger-menu” and try to running the project, i got this error:
error: bundling: UnableToResolveError: Unable to resolve module react-dom
from /Users/nana/Project/digital_onboarding/photon_digital_onboarding_widget/node_modules/react-burger-menu/lib/menuFactory.js
: Module does not exist in the module map or in these directories:
/Users/nana/Project/digital_onboarding/photon_digital_onboarding_widget/node_modules
This might be related to https://github.com/facebook/react-native/issues/4968 To resolve try the following:
- Clear watchman watches:
watchman watch-del-all
. - Delete the
node_modules
folder:rm -rf node_modules && npm install
. - Reset packager cache:
rm -fr $TMPDIR/react-*
ornpm start --reset-cache
. at p.catch.error (/Users/nana/Project/digital_onboarding/photon_digital_onboarding_widget/node_modules/react-native/packager/src/node-haste/DependencyGraph/ResolutionRequest.js:366:19) at process._tickCallback (internal/process/next_tick.js:109:7) Bundlingwebapp/resources/widget/index/overviewIndex.js
99.1% (421/423), failed.
I have tried the three steps and the issued still happen.
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Cannot resolve module 'react-dom' - Stack Overflow
Issue is react-dom is not installed, when you hit npm -v react-dom , it gives you the version of npm not react-dom version,...
Read more >"Unable to resolve module `react-dom/server`" · Issue #1 ...
Try npm install react-dom --save or yarn add react-dom . 1
Read more >module not found error | can not resolve react dom module
Join this channel to get access to perks:https://www.youtube.com/channel/UCoSpmr2KNOxjwE_B9ynUmig/joinMy GearCamera ...
Read more >[Solved]-Cannot resolve module 'react-dom'-Reactjs
[Solved]-Cannot resolve module 'react-dom'-Reactjs ... Issue is react-dom is not installed, when you hit npm -v react-dom , it gives you the version...
Read more >cannot find module 'react-dom' - You.com | The AI Search ...
Error: Cannot find module "react-dom" - Stack Overflow ... 2. I think it is related to this issue. react/lib/ReactDOMServer is replaced by react-dom/server....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
thanks for your help 😃
Not currently, I’m afraid. It looks like there are a few similar projects for React Native though:
Best of luck!