Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to run examples #63

Closed
brunolemos opened this issue Dec 1, 2017 · 3 comments
Closed

Not able to run examples #63

brunolemos opened this issue Dec 1, 2017 · 3 comments

Comments

@brunolemos
Copy link
Contributor

I keep getting this error even after recloning and clearing all caches:

Loading dependency graph, done.
Bundling `index.ios.js`  [development, non-minified]  0.0% (0/1), failed.
error: bundling failed: ambiguous resolution: module `/Users/brunolemos/Projects/packages/react-native-gesture-handler/Example/index.ios.js` tries to require `react-native`, but there are several files providing this module. You can delete or fix them: 

  * `/Users/brunolemos/Projects/packages/react-native-gesture-handler/Example/node_modules/react-native-gesture-handler/Example/node_modules/react-native/package.json`
  * `/Users/brunolemos/Projects/packages/react-native-gesture-handler/Example/node_modules/react-native/package.json`
@brunolemos
Copy link
Contributor Author

brunolemos commented Dec 1, 2017

Running this inside the Example folder make it work:

rm -rf ../node_modules/react-native
npm start -- --reset-cache

But that shouldn't be needed, something is wrong.

@TheCodeTalker
Copy link

@brunolemos after that also i getting this
error: bundling failed: ambiguous resolution: module /Users/thecodetalker/Documents/REACTNATIVE/react-native-gesture-handler/Example/index.ios.jstries to requirereact-native`, but there are several files providing this module. You can delete or fix them:

  • /Users/thecodetalker/Documents/REACTNATIVE/react-native-gesture-handler/Example/node_modules/react-native-gesture-handler/Example/node_modules/react-native-gesture-handler/Example/node_modules/react-native/package.json
  • /Users/thecodetalker/Documents/REACTNATIVE/react-native-gesture-handler/Example/node_modules/react-native/package.json

@kmagiera
Copy link
Member

kmagiera commented Dec 5, 2017

Hey @TheCodeTalker

Are you installing gesture handler lib from NPM? Because the package distributed via npm does not contain the Example folder. So it seems like you might have npm link it or maybe copy from git clone?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants