meliorence / meliorence/react-native-snap-carousel
example build error
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 10.5k
- Forks
- 2.3k
- PR merge metrics
- No merged PRs in 30d
Description
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 ([]).)
- I have read the guidelines regarding bug report.
- I have reviewed the documentation in its entirety, including the dedicated documentations 📚.
- I have searched for existing issues and made sure that the problem hasn't already been reported.
- I am using the latest plugin version.
- I am following the issue template closely in order to produce a useful bug report.
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in the example app after cloning the repository and installing dependencies, then inspect the import of react reported in src/carousel/Carousel.js. Reproduce with react-native run-android and compare the example's dependency setup with the stated React Native and react-native-snap-carousel versions. Done means the example bundles and launches on the reported platforms.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react-native
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100