atoami / react-native-navigation-redux-starter-kit

React Native Navigation(v2) Starter Kit with Redux, Saga, ESLint, Babel, Jest and Facebook SDK 😎
MIT License
269 stars 94 forks source link

Crashes on startup with out of date dependancies #14

Closed Pushplaybang closed 5 years ago

Pushplaybang commented 5 years ago

error:

ReferenceError: Unknown option: .caller. Check out http://babeljs.io/docs/usage/options/ for more information about options.
    at buildUnknownError (/Users/paul/repositories/learning/react-native/ReactNativeBoilerplate/node_modules/@babel/core/lib/config/validation/options.js:113:11)
    at Object.keys.forEach.key (/Users/paul/repositories/learning/react-native/ReactNativeBoilerplate/node_modules/@babel/core/lib/config/validation/options.js:99:57)
    at Array.forEach (<anonymous>)
    at validate (/Users/paul/repositories/learning/react-native/ReactNativeBoilerplate/node_modules/@babel/core/lib/config/validation/options.js:69:21)
    at loadPrivatePartialConfig (/Users/paul/repositories/learning/react-native/ReactNativeBoilerplate/node_modules/@babel/core/lib/config/partial.js:38:50)
    at loadFullConfig (/Users/paul/repositories/learning/react-native/ReactNativeBoilerplate/node_modules/@babel/core/lib/config/full.js:43:39)
    at loadOptions (/Users/paul/repositories/learning/react-native/ReactNativeBoilerplate/node_modules/@babel/core/lib/config/index.js:28:36)
    at OptionManager.init (/Users/paul/repositories/learning/react-native/ReactNativeBoilerplate/node_modules/@babel/core/lib/config/index.js:34:12)
    at compile (/Users/paul/repositories/learning/react-native/ReactNativeBoilerplate/node_modules/@babel/register/lib/node.js:61:42)
    at compileHook (/Users/paul/repositories/learning/react-native/ReactNativeBoilerplate/node_modules/@babel/register/lib/node.js:102:12)

the error is located at ReactNativeBoilerplate/node_modules/@babel/core/lib/config/validation/options.js:113 throw new ReferenceError(unknownOptErr);

There are various references on stack oveflow. I'm currently experimenting with upgrading the babel dependancies

Kirill-Cherkalov commented 5 years ago

1 at the first, try to remove node_modules and yarn.lock or package-lock.json and do npm i or yarn 2 maybe u have some different version of react-navigation (not 57.8) or other dev dependencies

Pushplaybang commented 5 years ago

@Kirill-Cherkalov - thanks for coming back to me, updating babel deps seems to get it to bundle,

my current setup:

 React Native Environment Info:
    System:
      OS: macOS 10.14.2
      CPU: (8) x64 Intel(R) Core(TM) i7-7820HQ CPU @ 2.90GHz
      Memory: 1.98 GB / 16.00 GB
      Shell: 5.5.1 - /usr/local/bin/zsh
    Binaries:
      Node: 10.15.0 - ~/.nvm/versions/node/v10.15.0/bin/node
      Yarn: 1.13.0 - /usr/local/bin/yarn
      npm: 6.7.0 - ~/.nvm/versions/node/v10.15.0/bin/npm
      Watchman: 4.9.0 - /usr/local/bin/watchman
    SDKs:
      iOS SDK:
        Platforms: iOS 12.1, macOS 10.14, tvOS 12.1, watchOS 5.1
    IDEs:
      Android Studio: 3.3 AI-182.5107.16.33.5264788
      Xcode: 10.1/10B61 - /usr/bin/xcodebuild
    npmPackages:
      react: 16.6.3 => 16.6.3
      react-native: 0.57.8 => 0.57.8
    npmGlobalPackages:
      react-native-cli: 2.0.1
      react-native-git-upgrade: 0.2.7

updating the babel dependancies in this instance now allows it to run, but now the crash has move from pre launch to while trying to load in the simulator (same error on Android and iOS)

Application ReactNativeStarterKit has not been registered
screenshot 2019-02-20 at 16 41 15

stackoverflow seems to point to AppRegistry.RegisterComponent but I don't see this in the app?

https://stackoverflow.com/questions/38340360/react-native-application-has-not-been-registered-error

atoami commented 5 years ago

@Pushplaybang Sorry for late reply. Did you just clone the repo and tried to run? Didn't you upgrade any repo?

atoami commented 5 years ago

@Pushplaybang Please pull the master branch again. I just upgraded the packages to the latest versions.

Pushplaybang commented 5 years ago

@atoami - tried both just pulling and then upgrading various dependancies, eventually started fresh on my own, thanks anyway though.

Regards.