blockstack-react-native icon indicating copy to clipboard operation
blockstack-react-native copied to clipboard

Error when running on iOS

Open shreyasthiagaraj opened this issue 5 years ago • 6 comments

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 avatar Nov 18 '19 12:11 shreyasthiagaraj

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

ntheile avatar Nov 19 '19 21:11 ntheile

@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.

shreyasthiagaraj avatar Nov 22 '19 18:11 shreyasthiagaraj

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

ntheile avatar Nov 22 '19 19:11 ntheile

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 avatar Nov 22 '19 19:11 ntheile

@shreyasthiagaraj any updates or ideas on this one?

ntheile avatar Jan 13 '20 17:01 ntheile

Any updates? It's been 2 years.

brocodedude avatar Nov 20 '21 23:11 brocodedude