When upgrading to RN 0.59.4 and after a successful build - one can encounter the following error in metro bundler:
react native Cannot find module 'metro/src/reactNative Transformer
I got this error message after upgrading to the latest expo version because I was getting the warning: "The global expo-cli package has been deprecated."
I fixed the error by running "npx expo install --fix".
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.
Reference: https://github.com/facebook/metro/issues/293#issuecomment-452779809
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With