react-nativeexpo

Cannot find module 'expo/bundleNativeModules.json'


I'm using expo to build an app. I'm new to React-Native and expo so if you could help me, I'd be really appreciated. I get a couple of warnings that says:

Some of your project's dependencies are not compatible with currently installed expo package version
- expo-constants - expected version range: ...
- expo-permissions - expected version range: ...
- react-native-gesture-handler - expected version range: ...

Your project may not work correctly until you install the correct versions of the packages. 

I was facing another error:

"TypeError: TypeError: undefined is not an object (evaluating '_styles.default.list')".

So I'm trying to install the latest version.

When I try to install expo install expo-permissions and expo install react-native-gesture-handler, I get errors. Both errors say

Cannot find module 'expo/bundledNativeModules.json' Require stack: - /Users/address/src/react-native-udacicards/noop.js

I tried to remove node_modules and package-lock.json then npm install.


Solution

  • rollback with npm install -g expo-cli@2.4.3