Beta version throws error `Module does not exists 'expo'`
See original GitHub issueTried running react-native init demo && yarn add react-native-elements@beta
& the default application did not work. It throws the following error -
Unable to resolve module `expo` from `~/demo`: Module does not exist in the module map
This might be related to https://github.com/facebook/react-native/issues/4968
To resolve try the following:
1. Clear watchman watches: `watchman watch-del-all`.
2. Delete the `node_modules` folder: `rm -rf node_modules && npm install`.
3. Reset Metro Bundler cache: `rm -rf $TMPDIR/react-*` or `npm start -- --reset-cache`.
4. Remove haste cache: `rm -rf $TMPDIR/haste-map-react-native-packager-*`.
It throws error because of this line in V1 branch as it uses Expo & I’m not using it.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:22
Top Results From Across the Web
Unable to resolve module....Expo fails to compile every time
Hi, I am running Expo v20.20.1 on MacOS Sierra 10.12.6. I am very frustrated with Expo as I have been getting the same...
Read more >Module `expo` does not exist in the Haste module map
I am trying to create a react-native bundle and getting the following error: Unable to resolve module `expo` from `C:\Users\ ...
Read more >unable to resolve module expo-constants - error react native
I'm try to run expo project on iOS. When I run command expo start , Metro bundle starts successfully but when I click...
Read more >Known issues with Android Studio and Android Gradle Plugin
This section describes known issues that exist in the latest stable version of the Android Gradle plugin. Not all dynamic-feature library dependencies are...
Read more >Troubleshooting | React Navigation
If the module points to an npm package (i.e. the name of the module doesn't with ./ ), then it's probably due to...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Okay guys we ended up by doing this. Basically you can still use
linearGradientProps
but you’ll need to pass aButtonComponent
accordingly to your environment (Expo vs React Native).The
v1.0.0-beta2
should be released in few hours.Guys I know this has been solved but if you needed to go the way you did it at first, you can do it with https://github.com/satya164/babel-plugin-optional-require