This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-11-27
Channels
- # adventofcode (1)
- # announcements (4)
- # beginners (120)
- # calva (5)
- # cider (12)
- # clara (3)
- # cljdoc (48)
- # cljs-dev (33)
- # cljsrn (4)
- # clojure (124)
- # clojure-dev (43)
- # clojure-europe (2)
- # clojure-italy (168)
- # clojure-nl (2)
- # clojure-spec (7)
- # clojure-uk (79)
- # clojurescript (50)
- # core-logic (6)
- # cursive (12)
- # datascript (1)
- # datomic (8)
- # devcards (2)
- # emacs (5)
- # events (2)
- # figwheel-main (6)
- # fulcro (18)
- # graphql (42)
- # hyperfiddle (3)
- # jobs (1)
- # luminus (2)
- # nrepl (5)
- # off-topic (59)
- # onyx (5)
- # parinfer (2)
- # pathom (10)
- # pedestal (2)
- # portkey (3)
- # re-frame (24)
- # reagent (6)
- # reitit (54)
- # remote-jobs (1)
- # ring (5)
- # shadow-cljs (75)
- # spacemacs (35)
- # sql (22)
- # tools-deps (16)
- # unrepl (10)
@kenny744 I've seen your final issue when bundling manually. IIRC your --bundle-output
is incorrect try /usr/src/app/android/app/build/generated/assets/react/release/index.android.bundle
I think you can confirm this is the problem by unzipping the release apk. My guess is index.android.bundle is not in it
@codonovan thanks for the tip! you were right; there was no index.android.bundle in the apk. the path that worked for me was /usr/src/app/android/app/src/main/assets/index.android.bundle
i managed to resolve the call stack to the following:
com.facebook.react.common.JavascriptException: undefined is not an object (evaluating 'goog.string.Unicode = {
NBSP: " "
}'), stack:
<unknown>@2574:14
loadModuleImplementation@162:14
guardedLoadModule@83:47
metroRequire@72:79
global code@158693:8
at com.facebook.react.modules.core.ExceptionsManagerModule.showOrThrowError(ExceptionsManagerModule.java:54)
at com.facebook.react.modules.core.ExceptionsManagerModule.reportFatalException(ExceptionsManagerModule.java:38)
at java.lang.reflect.Method.invoke(Native Method)
at com.facebook.react.bridge.JavaMethodWrapper.invoke(JavaMethodWrapper.java:372)
at com.facebook.react.bridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:160)
at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:29)
at android.os.Looper.loop(Looper.java:193)
at com.facebook.react.bridge.queue.MessageQueueThreadImpl$3.run(MessageQueueThreadImpl.java:192)
at java.lang.Thread.run(Thread.java:764)
and then i came across this conversation between @domkm and @ronb at https://clojurians-log.clojureverse.org/cljsrn/2017-06-15. Are there some known issues when using :optimizations :whitespace
?a few more details. using source maps, <unknown>@2574:14 resolves to
goog.provide("goog.string");goog.provide("goog.string.Unicode");goog.define("goog.string.DETECT_DOUBLE_ESCAPING",false);goog.define("goog.string.FORCE_NON_DOM_HTML_UNESCAPING",false);goog.string.Unicode={NBSP:" "};goog.string.startsWith=function(str,prefix){return str.lastIndexOf(prefix,0)==0};goog.string.endsWith=function(str,suffix){var l=str.length-suffix.length;return l>=0&&str.indexOf(suffix,l)==l};
and then metroRequire@72:79 resolves to
{ source: '/usr/src/app/node_modules/metro/src/lib/polyfills/require.js',
line: 152,
column: 20,
name: 'moduleIdReallyIsNumber' }
I also noticed that there are two versions of require.js in my node_modules; one under metro/ (which does global.require = metroRequire;
) and the other under react-native/ (which does global.require = require;
). is this going to be a problem?