React Native: Unable to resolve module `child_process`
See original GitHub issueHi
I’m trying to install lorem-ipsum in my react-native project, but I’m getting the following error from my bundler:
error: bundling failed: Error: Unable to resolve module
child_process
from/Users/jenskuhrjorgensen/Documents/Workspace/journl-incontinence/mobile/node_modules/lorem-ipsum/dist/index.js
: Modulechild_process
does not exist in the Haste module map
I’ve tried to restart the metro bundler with npm run start -- --reset-cache
and remove and re-install node_modules, but to no avail.
Any help would be appreciated! 😃
Environment: “react”: “16.6.3” “react-native”: “0.58.5” “lorem-ipsum”: “2.0.0-alpha.7”
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
Error: While trying to resolve module `child_process` React ...
js , the package C:\Users\User1\React Native\node_modules\child_process\package.json was successfully found. However, this package itself ...
Read more >Unable to resolve module redux on React Native project – iTecNote
Since the new release of react-native (0.26.0) I'm getting this error when I init a new project. I get the same error when...
Read more >unable to resolve module expo-device - You.com | The search ...
I solved my problem. Here are the steps I did: Change my api folder to be within react-native app. enter image description here....
Read more >Module not found: Can't resolve 'child_process' error [Solved]
The error "Module not found: Error: Can't resolve 'child_process'" occurs because there has been a breaking change in Webpack version 5. To solve...
Read more >Cannot resolve module 'child_process' in node.d.ts-Reactjs
This makes sure that the environment you are targeting is Node.js and not the browser, and will therefore ignore native dependencies. Final Config:....
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 FreeTop 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
Top GitHub Comments
Until this issue is resolved, is it possible to downgrade to 1.0.6. It’s functionally the same.
@nocarroll Thanks for letting me know what you were seeing. That helped track down the issue.