Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS 启动错误 #7

Open
chencao187 opened this issue Sep 12, 2018 · 1 comment
Open

iOS 启动错误 #7

chencao187 opened this issue Sep 12, 2018 · 1 comment

Comments

@chencao187
Copy link

chencao187 commented Sep 12, 2018

simulator显示:
screen shot 2018-09-12 at 10 22 49 pm

Metro bundle 显示:

Looking for JS files in
   /Users/dchen/JJJkkk 


Metro Bundler ready.

Loading dependency graph, done.
error: bundling failed: Error: Unable to resolve module `../node_modules/react-native/src/utils/MobxProvider` from `/Users/dchen/JJJkkk/src/index.js`: The module `../node_modules/react-native/src/utils/MobxProvider` could not be found from `/Users/dchen/JJJkkk/src/index.js`. Indeed, none of these files exist:

  * `/Users/dchen/JJJkkk/node_modules/react-native/src/utils/MobxProvider(.native||.ios.js|.native.js|.js|.ios.json|.native.json|.json)`
  * `/Users/dchen/JJJkkk/node_modules/react-native/src/utils/MobxProvider/index(.native||.ios.js|.native.js|.js|.ios.json|.native.json|.json)`
    at ModuleResolver.resolveDependency (/Users/dchen/JJJkkk/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js:161:851)
    at ResolutionRequest.resolveDependency (/Users/dchen/JJJkkk/node_modules/metro/src/node-haste/DependencyGraph/ResolutionRequest.js:91:16)
    at DependencyGraph.resolveDependency (/Users/dchen/JJJkkk/node_modules/metro/src/node-haste/DependencyGraph.js:272:4579)
    at dependencies.map.relativePath (/Users/dchen/JJJkkk/node_modules/metro/src/DeltaBundler/traverseDependencies.js:376:19)
    at Array.map (<anonymous>)
    at resolveDependencies (/Users/dchen/JJJkkk/node_modules/metro/src/DeltaBundler/traverseDependencies.js:374:16)
    at /Users/dchen/JJJkkk/node_modules/metro/src/DeltaBundler/traverseDependencies.js:212:33
    at Generator.next (<anonymous>)
    at step (/Users/dchen/JJJkkk/node_modules/metro/src/DeltaBundler/traverseDependencies.js:297:313)
    at /Users/dchen/JJJkkk/node_modules/metro/src/DeltaBundler/traverseDependencies.js:297:473
 BUNDLE  [ios, dev] ./index.js ░░░░░░░░░░░░░░░░ 0.0% (0/1), failed.

error: bundling failed: Error: Unable to resolve module `../node_modules/react-native/src/utils/MobxProvider` from `/Users/dchen/JJJkkk/src/index.js`: The module `../node_modules/react-native/src/utils/MobxProvider` could not be found from `/Users/dchen/JJJkkk/src/index.js`. Indeed, none of these files exist:

  * `/Users/dchen/JJJkkk/node_modules/react-native/src/utils/MobxProvider(.native||.ios.js|.native.js|.js|.ios.json|.native.json|.json)`
  * `/Users/dchen/JJJkkk/node_modules/react-native/src/utils/MobxProvider/index(.native||.ios.js|.native.js|.js|.ios.json|.native.json|.json)`
    at ModuleResolver.resolveDependency (/Users/dchen/JJJkkk/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js:161:851)
    at ResolutionRequest.resolveDependency (/Users/dchen/JJJkkk/node_modules/metro/src/node-haste/DependencyGraph/ResolutionRequest.js:91:16)
    at DependencyGraph.resolveDependency (/Users/dchen/JJJkkk/node_modules/metro/src/node-haste/DependencyGraph.js:272:4579)
    at dependencies.map.relativePath (/Users/dchen/JJJkkk/node_modules/metro/src/DeltaBundler/traverseDependencies.js:376:19)
    at Array.map (<anonymous>)
    at resolveDependencies (/Users/dchen/JJJkkk/node_modules/metro/src/DeltaBundler/traverseDependencies.js:374:16)
    at /Users/dchen/JJJkkk/node_modules/metro/src/DeltaBundler/traverseDependencies.js:212:33
    at Generator.next (<anonymous>)
    at step (/Users/dchen/JJJkkk/node_modules/metro/src/DeltaBundler/traverseDependencies.js:297:313)
    at /Users/dchen/JJJkkk/node_modules/metro/src/DeltaBundler/traverseDependencies.js:297:473
 BUNDLE  [ios, dev] ./index.js ░░░░░░░░░░░░░░░░ 0.0% (0/1), failed.

MacOS 10.14 beta
Xcode 9.4.1
react-native-cli: 2.0.1
react-native: 0.55.4

@trazyn
Copy link
Owner

trazyn commented Sep 18, 2018

emmmm

npm start -- --reset-cache

参考 #5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants