Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to resolve module `./Linking/Linking` from `node_modules/expo/build/ExpoLazy.js`

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

like image 248
Esteban Contreras Avatar asked May 10 '20 17:05

Esteban Contreras


2 Answers

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.

like image 152
Michal Avatar answered Nov 11 '22 18:11

Michal


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.

like image 7
user3916570 Avatar answered Nov 11 '22 19:11

user3916570