metro icon indicating copy to clipboard operation
metro copied to clipboard

Error: Cannot find module 'metro-core' (but module exist)

Open vladbraiko opened this issue 1 year ago • 2 comments

after upgrading expo to last version I get Error: Cannot find module 'metro-core' when running expo start

reinstalling packages doesn't work

"expo": "^46.0.0"
"metro": "^0.72.0"
"metro-core": "^0.72.0"
"react-native": "0.69.4"
Screenshot 2022-08-10 at 23 33 36

vladbraiko avatar Aug 10 '22 20:08 vladbraiko

Hi, thanks for the report. Can I ask what package manager you're using to install dependencies?

robhogan avatar Aug 10 '22 21:08 robhogan

Hi, thanks for the report. Can I ask what package manager you're using to install dependencies?

tried both npm and yarn

vladbraiko avatar Aug 11 '22 09:08 vladbraiko

This looks like an issue with the way @expo/cli is installed or being executed - the paths look like it's running from a global location and unfortunately as I'm no Expo expert I'm not sure if that's correct, or how it's designed to pick up your project's Metro dependencies. I'd recommend opening an issue over on expo/expo if this is still causing problems.

robhogan avatar Oct 13 '22 10:10 robhogan