meliorence / meliorence/react-native-snap-carousel

example build error

Open
#624 3 comments 0 reactions 0 assignees View on GitHub

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 ([]).)

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.