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

Broken Boilerplate? #59

Closed
OriginalTsynn opened this issue Jul 10, 2019 · 4 comments
Closed

Broken Boilerplate? #59

OriginalTsynn opened this issue Jul 10, 2019 · 4 comments

Comments

@OriginalTsynn
Copy link

error: bundling failed: Error: While resolving module App/Config, the Haste package App was found. However the module Config could not be found within the package. Indeed, none of these files exist:

  • /Users/slevin/SEI/ReactNative/react-native-boilerplate/App/Config(.native||.ios.js|.native.js|.js|.ios.json|.native.json|.json|.ios.ts|.native.ts|.ts|.ios.tsx|.native.tsx|.tsx)
  • /Users/slevin/SEI/ReactNative/react-native-boilerplate/App/Config/index(.native||.ios.js|.native.js|.js|.ios.json|.native.json|.json|.ios.ts|.native.ts|.ts|.ios.tsx|.native.tsx|.tsx)
    at resolveHasteName (/Users/slevin/SEI/ReactNative/react-native-boilerplate/node_modules/metro-resolver/src/resolve.js:236:9)
    at Object.resolve (/Users/slevin/SEI/ReactNative/react-native-boilerplate/node_modules/metro-resolver/src/resolve.js:103:20)
    at ModuleResolver.resolveDependency (/Users/slevin/SEI/ReactNative/react-native-boilerplate/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js:143:31)
    at ResolutionRequest.resolveDependency (/Users/slevin/SEI/ReactNative/react-native-boilerplate/node_modules/metro/src/node-haste/DependencyGraph/ResolutionRequest.js:52:18)
    at DependencyGraph.resolveDependency (/Users/slevin/SEI/ReactNative/react-native-boilerplate/node_modules/metro/src/node-haste/DependencyGraph.js:283:16)
    at Object.resolve (/Users/slevin/SEI/ReactNative/react-native-boilerplate/node_modules/metro/src/lib/transformHelpers.js:261:42)
    at /Users/slevin/SEI/ReactNative/react-native-boilerplate/node_modules/metro/src/DeltaBundler/traverseDependencies.js:399:31
    at Array.map ()
    at resolveDependencies (/Users/slevin/SEI/ReactNative/react-native-boilerplate/node_modules/metro/src/DeltaBundler/traverseDependencies.js:396:18)
    at /Users/slevin/SEI/ReactNative/react-native-boilerplate/node_modules/metro/src/DeltaBundler/traverseDependencies.js:269:33
    BUNDLE [ios, dev] ./index.js ▓▓▓▓▓▓▓▓▓░░░░░░░ 62.2% (583/739), failed.

Describe the bug
Not entirely sure what the problem is, it's simply failing to launch in the iOS simulator for me

To Reproduce
Steps to reproduce the behavior:

  1. clone the repository git clone https://github.com/thecodingmachine/react-native-boilerplate
  2. remove the previous git history: rm -rf .git/
  3. install the npm dependencies by running yarn
  4. in the project root folder: react-native run-ios

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.
image

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

@OriginalTsynn
Copy link
Author

resolved the issue!

@AurelGit
Copy link
Collaborator

Missing the App/Config/index.js file I guess ;)

See you !

@braynm
Copy link

braynm commented Sep 9, 2019

@OriginalTsynn Hi, I am having the same error. would you mind sharing how did it get fixed? Thanks!

@shahidmau
Copy link

I was facing the same issue and fixed by renaming App/Config/index.dev.js to App/Config/index.js

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

4 participants