proyecto26 / react-native-inappbrowser

📱InAppBrowser for React Native (Android & iOS) 🤘
https://www.npmjs.com/package/react-native-inappbrowser-reborn
MIT License
1.32k stars 224 forks source link

Cannot run due to missing file #16

Closed ghost closed 5 years ago

ghost commented 5 years ago

Hey there,

I can't seem to run with IOS. The emulator is telling me that Metro Bundler has encountered an internal error. Here is the log:

error: bundling failed: Error: While trying to resolve module `react-native-inappbrowser-reborn` from file `/Users/OtanerAnton/Desktop/ReactProjects/baseProject/screens/SignUpScreen.js`, the package `/Users/OtanerAnton/Desktop/ReactProjects/baseProject/node_modules/react-native-inappbrowser-reborn/package.json` was successfully found. However, this package itself specifies a `main` module field that could not be resolved (`/Users/OtanerAnton/Desktop/ReactProjects/baseProject/node_modules/react-native-inappbrowser-reborn/index.js`. Indeed, none of these files exist:

  * `/Users/OtanerAnton/Desktop/ReactProjects/baseProject/node_modules/react-native-inappbrowser-reborn/index.js(.native||.ios.js|.native.js|.js|.ios.json|.native.json|.json|.ios.ts|.native.ts|.ts|.ios.tsx|.native.tsx|.tsx)`
  * `/Users/OtanerAnton/Desktop/ReactProjects/baseProject/node_modules/react-native-inappbrowser-reborn/index.js/index(.native||.ios.js|.native.js|.js|.ios.json|.native.json|.json|.ios.ts|.native.ts|.ts|.ios.tsx|.native.tsx|.tsx)`
    at ResolutionRequest.resolveDependency (/Users/OtanerAnton/Desktop/ReactProjects/baseProject/node_modules/metro/src/node-haste/DependencyGraph/ResolutionRequest.js:61:15)

Can't seem to find a solution to this. I may be missing something obvious though. Thanks!

jdnichollsc commented 5 years ago

I can see the index.js file at the root of the repo. Can you see that file from node_modules/react-native-inappbrowser-reborn?

ghost commented 5 years ago

Yes, I can see it!

ghost commented 5 years ago

Srangely, it just started working! Must have been a problem with the metro compiler!