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.

Error: Cannot find module 'metro/src/DeltaBundler/Worker'

See original GitHub issue

When I run the react-native start I am getting this error message. I cleaned up all cache and removed node_modules/ these don’t work.

Can anyone help me, please?

My versions are.

react-native -v
react-native-cli: 1.2.0
react-native: 0.57.3

All code block as below;

react-native start --reset-cache
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                                                                              β”‚
β”‚  Running Metro Bundler on port 8081.                                         β”‚
β”‚                                                                              β”‚
β”‚  Keep Metro running while developing on any JS projects. Feel free to        β”‚
β”‚  close this tab and run your own Metro instance if you prefer.               β”‚
β”‚                                                                              β”‚
β”‚  https://github.com/facebook/react-native                                    β”‚
β”‚                                                                              β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Looking for JS files in
   /Users/m/p/my-project

warning: the transform cache was reset.
Loading dependency graph, done.
Loading dependency graph...(node:26114) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Cannot find module 'metro/src/DeltaBundler/Worker'
(node:26114) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:9
  • Comments:18

github_iconTop GitHub Comments

82reactions
cladjulescommented, Jan 9, 2019

@soranoba didn’t work for me either. @aafarian I think there’s an issue with the version of metro packaged with the latest RN Upgrade. I just installed locally in dev metro npm install --save-dev metro, which is the version 0.51.1, and that worked for me.

13reactions
soranobacommented, Oct 22, 2018

FYI: I also encountered the same issue, but I solved it.

rm -rf $TMPDIR/metro-cache*
watchman watch-del-all
react-native start --reset-cache
Read more comments on GitHub >

github_iconTop Results From Across the Web

React Native Notes 13: Error: Cannot find module 'metro/src ...
β€œError: Cannot find module 'metro/src/DeltaBundler/Worker'”. appears on my terminal. Fortunately, the solution is so simple but again RN gives us an error ......
Read more >
react native Cannot find module 'metro/src/reactNative ...
I just installed locally in dev metro npm install --save-dev metro , which is the version 0.51. 1, and that worked for me....
Read more >
iOS : React Native Error Cannot find module 'metro-config/src ...
iOS : React Native Error Cannot find module ' metro -config/ src /defaults/blacklist' [ Beautify Your ComputerΒ ...
Read more >
Failed to construct transformer: Error: Cannot find module 'vue ...
Failed to construct transformer: Error: Cannot find module 'vue-native-scripts' ... Logs for your project will appear below. Press Ctrl+C to exit.
Read more >
while trying to resolve module `@react-native/normalize-color`
We need tell MetroJS bundler to compile .ts and .tsx files i solved this error by edit metro.config.js file in root project folder...
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