React Native Notes 13: Error: Cannot find module ‘metro/src/DeltaBundler/Worker’ Solution
Hey,
Another day, another error from react native :)
Unknown reason, beginning of the day of development, RN just begins with a new error;
“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 without any tips to solve it :S
Simply run the command:
npm install — save-dev metro
The solution is add a dev dependency as the metro one. If you already have it, just upgrade the metro dependency version 2 or 3. I suggest that use the latest version.
Aand that’s it.
Another day, another simple solution but another annoying error from RN.
If you have any problem, ask me :)
Have fun!