10

Has anyone experience this error with expo, when running react-native run-android?

error: bundling failed: Error: Unable to resolve module `./Linking/Linking` from `node_modules/expo/build/ExpoLazy.js`: 

None of these files exist:
  * node_modules/expo/build/Linking/Linking(.native|.android.js|.native.js|.js|.android.json|.native.json|.json|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx)
  * node_modules/expo/build/Linking/Linking/index(.native|.android.js|.native.js|.js|.android.json|.native.json|.json|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx)

"expo": "^37.0.9",

5 Answers 5

7

Just ran into this issue, downgrade to 37.0.8 (no caret) and do an npm i. Looks like they released 37.0.9 yesterday and it has an issue.

2
  • 1
    thank you very much, i just solve it downgrading to ~37.0.3 :) May 11, 2020 at 14:39
  • Sorry, how can I downgrade the sdk? I cannot find anything on google
    – Univers3
    May 17, 2020 at 18:39
3

What worked for me:

1) In package.json change to "expo": "37.0.8" 2) Delete your node_modules 3) installl packages npm i 4) clean cache in expo expo r -c

Now it started to work again. Couldn't find the last step in previous comments.

0

This is an Internal bug of react-native. You don't have much of a choice, as user3916570 consider downgrading.

0

For now, downgrading Expo to 37.0.8 fixed this. To downgrade, in your package.json, change your Expo dependency to:

"expo": "37.0.8",

Then remove your node_modules and reinstall everything:

rm -rf node_modules
npm i
0

It's not an expo version problem only, you should also check the global expo-cli version and probably node as well. Run:

$ npm install -g expo-cli --force 
$ rm -rf node_modules/ 
$ rm -rf package-lock.json 
# (in my case mac '$ brew upgrade node && npm install -g npm') 
$ npm install 
$ npm run

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.