question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Beta version throws error `Module does not exists 'expo'`

See original GitHub issue

Tried 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:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:22

github_iconTop GitHub Comments

4reactions
xavier-villelegiercommented, Jan 28, 2018

Okay guys we ended up by doing this. Basically you can still use linearGradientProps but you’ll need to pass a ButtonComponent accordingly to your environment (Expo vs React Native).

The v1.0.0-beta2 should be released in few hours.

2reactions
deadcoder0904commented, Apr 18, 2018

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found