Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

react native Cannot find module 'metro/src/reactNative Transformer'

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

like image 501
Erab BO Avatar asked Feb 17 '26 00:02

Erab BO


2 Answers

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".

like image 182
aptsurdist Avatar answered Feb 19 '26 20:02

aptsurdist


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

like image 41
Md. Robi Ullah Avatar answered Feb 19 '26 19:02

Md. Robi Ullah



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!