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

Error when running on iOS #25

@shreyasthiagaraj

Description

@shreyasthiagaraj

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.

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions