question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

React Native: Unable to resolve module `child_process`

See original GitHub issue

Hi

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: Module child_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:closed
  • Created 5 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
knicklabscommented, Mar 14, 2019

Until this issue is resolved, is it possible to downgrade to 1.0.6. It’s functionally the same.

0reactions
knicklabscommented, Mar 30, 2019

@nocarroll Thanks for letting me know what you were seeing. That helped track down the issue.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found