Skip to content
This repository has been archived by the owner on Aug 1, 2023. It is now read-only.

Error when running on iOS #25

Open
shreyasthiagaraj opened this issue Nov 18, 2019 · 6 comments
Open

Error when running on iOS #25

shreyasthiagaraj opened this issue Nov 18, 2019 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@shreyasthiagaraj
Copy link
Contributor

Error info:

warning: the transform cache was reset.
Loading dependency graph, done.
error: bundling failed: Error: Unable to resolve module react-native from ../BlockstackSDK/index.js: react-native could not be found within the project.
If you are sure the module exists, try these steps:

  1. Clear watchman watches: watchman watch-del-all
  2. Delete node_modules: rm -rf node_modules and run yarn install
  3. Reset Metro's cache: yarn start --reset-cache
  4. Remove the cache: rm -rf /tmp/metro-*
    at ModuleResolver.resolveDependency (/Users/admin/Documents/blockstack-react-native/example/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js:186:15)
    at ResolutionRequest.resolveDependency (/Users/admin/Documents/blockstack-react-native/example/node_modules/metro/src/node-haste/DependencyGraph/ResolutionRequest.js:52:18)
    at DependencyGraph.resolveDependency (/Users/admin/Documents/blockstack-react-native/example/node_modules/metro/src/node-haste/DependencyGraph.js:282:16)
    at Object.resolve (/Users/admin/Documents/blockstack-react-native/example/node_modules/metro/src/lib/transformHelpers.js:267:42)
    at dependencies.map.result (/Users/admin/Documents/blockstack-react-native/example/node_modules/metro/src/DeltaBundler/traverseDependencies.js:426:31)
    at Array.map ()
    at resolveDependencies (/Users/admin/Documents/blockstack-react-native/example/node_modules/metro/src/DeltaBundler/traverseDependencies.js:423:18)
    at /Users/admin/Documents/blockstack-react-native/example/node_modules/metro/src/DeltaBundler/traverseDependencies.js:275:33
    at Generator.next ()
    at asyncGeneratorStep (/Users/admin/Documents/blockstack-react-native/example/node_modules/metro/src/DeltaBundler/traverseDependencies.js:87:24)
    BUNDLE [ios, dev] ./index.js ░░░░░░░░░░░░░░░░ 5.5% (4/17), failed.
@shreyasthiagaraj shreyasthiagaraj added the bug Something isn't working label Nov 18, 2019
@ntheile
Copy link

ntheile commented Nov 19, 2019

i am also having a lot of trouble running this on the latest react-native 0.61.4. any hints or ideas on why?

@shreyasthiagaraj
Copy link
Contributor Author

@ntheile Are you getting this error? My theory is that it was caused by the recent release of iOS 13.2, which just came out like 2 weeks ago.

@ntheile
Copy link

ntheile commented Nov 22, 2019

yeah, i get a similar error. even after i cleared all the caches and ran react-native-clean-project

@ntheile
Copy link

ntheile commented Nov 22, 2019

i wonder if it has to do with this "CLI has been extracted from core react-native as a part of "Lean Core" effort. Please read this blog post for more details." https://github.com/react-native-community/cli

@ntheile
Copy link

ntheile commented Jan 13, 2020

@shreyasthiagaraj any updates or ideas on this one?

@brocodedude
Copy link

brocodedude commented Nov 20, 2021

Any updates? It's been 2 years.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants