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

example build error #624

Open
5 tasks done
frederickjjoubert opened this issue Nov 21, 2019 · 3 comments
Open
5 tasks done

example build error #624

frederickjjoubert opened this issue Nov 21, 2019 · 3 comments

Comments

@frederickjjoubert
Copy link

frederickjjoubert commented Nov 21, 2019

Is this a bug report, a feature request, or a question?

Bug Report

Have you followed the required steps before opening a bug report?

(Check the step you've followed - put an x character between the square brackets ([]).)

Have you made sure that it wasn't a React Native bug?

Yes, I ran through the suggested fixes:

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-*`.

Is the bug specific to iOS or Android? Or can it be reproduced on both platforms?

I am experiencing this on both android and iOS

Is the bug reproductible in a production environment (not a debug one)?

I am just trying to run the example app.

Environment

Environment:
React native: 0.52.2
react-native-snap-carousel: 3.8.4

Target Platform:
Android (6.0)
iOS (10.3)

Expected Behavior

I expect to be able to run the example project.

Actual Behavior

I get the following error:

error: bundling failed: Error: Unable to resolve module `react` from `/Developer/ReactNative/react-native-snap-carousel/src/carousel/Carousel.js`: Module does not exist in the module map

Reproducible Demo

N/A trying to run the example

Steps to Reproduce

git clone the repo
cd to example
npm install
react-native run-android

Follow the getting started guide for the example.

@frederickjjoubert
Copy link
Author

Also per facebook/react-native#25389 restarting my computer didn't fix the problem 🤷🏻‍♂️

@kylebarron
Copy link

I was also having trouble with the example, and for me it was due to being pinned to an old react-native version. I have a working example with react-native 0.61.5 here:
https://github.com/kylebarron/react-native-snap-carousel-example

@dohooo

This comment was marked as spam.

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