-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Description
Hey there! Ignite CLI seems to be having a problem, eh?
What's going on?
Hello! I filed a ticket in the Redux repository, but as I looked deeper into it, I think it might be more of an Ignite issue. The original Redux issue is reduxjs/redux#2477 but I will repost below.
The app works fine when I run in dev mode connecting to my local React Native JS bundle server. But, when I do an npm run android:install
to make a signed APK and install, this new version dies immediately. The error is:
06-27 13:52:32.618 16961-16990/? E/ReactNativeJS: undefined is not a function (evaluating '(0,l.combineReducers)({github:r(851).reducer,login:r(852).reducer,search:r(905).reducer})')
06-27 13:52:32.618 16961-16991/? E/AndroidRuntime: FATAL EXCEPTION: mqt_native_modules
Process: com.johntest, PID: 16961
com.facebook.react.common.JavascriptException: undefined is not a function (evaluating '(0,l.combineReducers)({github:r(851).reducer,login:r(852).reducer,search:r(905).reducer})'), stack:
default@691:231
<unknown>@913:672
o@2:565
i@2:348
t@2:210
<unknown>@12:45
o@2:565
i@2:278
t@2:210
global code@1443:9
at com.facebook.react.modules.core.ExceptionsManagerModule.showOrThrowError(ExceptionsManagerModule.java:99)
at com.facebook.react.modules.core.ExceptionsManagerModule.reportFatalException(ExceptionsManagerModule.java:83)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.facebook.react.cxxbridge.JavaMethodWrapper.invoke(JavaMethodWrapper.java:372)
at com.facebook.react.cxxbridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:162)
at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:31)
at android.os.Looper.loop(Looper.java:145)
at com.facebook.react.bridge.queue.MessageQueueThreadImpl$3.run(MessageQueueThreadImpl.java:199)
at java.lang.Thread.run(Thread.java:818)
Though recently, through debugging and cleaning and building, I no longer see this in the Android Studio "Android Monitor" output, but rather the more traditional red React Native error. This is new since I filed the ticket in the Redux repo. Any advice for how to get a signed APK running on a hardware device is greatly appreciated.
How can I disable the github, login, and search reducers? I tried commenting them out in App/redux/index.js (I had to change the redux folder to lowercase to get around a build crash).
Steps to reproduce
Created a signed APK release and install on Android hardware device. Attempt to launch.
ignite doctor
results:
System
platform darwin
arch x64
cpu 4 cores Intel(R) Core(TM) i5-4278U CPU @ 2.60GHz
directory /Users/johndane/projects/teamcoco/react-native-app
JavaScript
node 8.1.1 /usr/local/bin/node
npm 5.0.4 /usr/local/bin/npm
yarn 0.23.2 /usr/local/bin/yarn
React Native
react-native-cli 2.0.1
app rn version 0.45.1
Ignite
ignite 2.0.0-beta.8 /usr/local/bin/ignite
Android
java 1.8.0_112-release /usr/bin/java
android home - /Users/johndane/Library/Android/sdk
iOS
xcode 8.3.3