maxs15 / maxs15/react-native-modalbox

Why I can't run example file but I can run other project that using modalbox

Open
#250 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
2.9k
Forks
496
PR merge metrics
No merged PRs in 30d

Description

Is anyone same here ? Error log below.

error: bundling failed: Error: Unable to resolve mod
ule react-native-button from /Users/artaro/Test1/App.js: Module react-native-button does not exist in the Haste 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 /tmp/metro-bundler-cache-* or npm start -- --reset-cache.
  4. Remove haste cache: rm -rf /tmp/haste-map-react-native-packager-*.
    at ModuleResolver.resolveDependency (/Users/artaro/Test1/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js:139:15)
    at ResolutionRequest.resolveDependency (/Users/artaro/Test1/node_modules/metro/src/node-haste/DependencyGraph/ResolutionRequest.js:49:18)
    at DependencyGraph.resolveDependency (/Users/artaro/Test1/node_modules/metro/src/node-haste/DependencyGraph.js:219:16)
    at Object.resolve (/Users/artaro/Test1/node_modules/metro/src/lib/transformHelpers.js:141:30)
    at dependencies.map.result (/Users/artaro/Test1/node_modules/metro/src/DeltaBundler/traverseDependencies.js:373:31)
    at Array.map ()
    at resolveDependencies (/Users/artaro/Test1/node_modules/metro/src/DeltaBundler/traverseDependencies.js:369:18)
    at /Users/artaro/Test1/node_modules/metro/src/DeltaBundler/traverseDependencies.js:188:33
    at Generator.next ()
    at step (/Users/artaro/Test1/node_modules/metro/src/DeltaBundler/traverseDependencies.js:298:30)
    DELTA [android, dev] ./index.js ░░░░░░░░░░░░░░░░ 0.0% (0/1), failed.

Contributor guide

No contributing guide indexed for this repository

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 with the example's App.js and the unresolved react-native-button import shown in the error log. Reproduce the example bundling failure and inspect how its dependencies are declared. Done means the example resolves react-native-button and bundles successfully without the reported module-resolution error.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react-native
Domain
mobile
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.