Errors on start iOS
jellea opened this issue · 6 comments
As reported by @pesterhazy in #6 (comment)
error log in the chrome debugger:
Running application "SimpleExampleApp" with appParams: {"rootTag":1,"initialProps":{}}. __DEV__ === true, development-level warning are ON, performance optimizations are OFF
index.ios.bundle?platform=ios&dev=true:50715 Not shimming window.location - location already set to http://localhost:8081/debuggerWorker.js
index.ios.bundle?platform=ios&dev=true:50715 Error while loading goog.i18n.bidi.Dir
index.ios.bundle?platform=ios&dev=true:6206 TypeError: Cannot read property 'substring' of undefined(…)reactConsoleError @ index.ios.bundle?platform=ios&dev=true:6206console.error @ index.ios.bundle?platform=ios&dev=true:50707global.console.(anonymous function) @ index.ios.bundle?platform=ios&dev=true:1288goog.require @ index.ios.bundle?platform=ios&dev=true:60014(anonymous function) @ index.ios.bundle?platform=ios&dev=true:105229requireImpl @ index.ios.bundle?platform=ios&dev=true:66require @ index.ios.bundle?platform=ios&dev=true:26goog.require @ index.ios.bundle?platform=ios&dev=true:60011(anonymous function) @ index.ios.bundle?platform=ios&dev=true:103452requireImpl @ index.ios.bundle?platform=ios&dev=true:66require @ index.ios.bundle?platform=ios&dev=true:26goog.require @ index.ios.bundle?platform=ios&dev=true:60011(anonymous function) @ index.ios.bundle?platform=ios&dev=true:103113requireImpl @ index.ios.bundle?platform=ios&dev=true:66require @ index.ios.bundle?platform=ios&dev=true:26goog.require @ index.ios.bundle?platform=ios&dev=true:60011(anonymous function) @ index.ios.bundle?platform=ios&dev=true:98458requireImpl @ index.ios.bundle?platform=ios&dev=true:66require @ index.ios.bundle?platform=ios&dev=true:26goog.require @ index.ios.bundle?platform=ios&dev=true:60011(anonymous function) @ index.ios.bundle?platform=ios&dev=true:98182requireImpl @ index.ios.bundle?platform=ios&dev=true:66require @ index.ios.bundle?platform=ios&dev=true:26goog.require @ index.ios.bundle?platform=ios&dev=true:60011(anonymous function) @ index.ios.bundle?platform=ios&dev=true:98160requireImpl @ index.ios.bundle?platform=ios&dev=true:66require @ index.ios.bundle?platform=ios&dev=true:26goog.require @ index.ios.bundle?platform=ios&dev=true:60011(anonymous function) @ index.ios.bundle?platform=ios&dev=true:60049requireImpl @ index.ios.bundle?platform=ios&dev=true:66require @ index.ios.bundle?platform=ios&dev=true:26(anonymous function) @ index.ios.bundle?platform=ios&dev=true:57429requireImpl @ index.ios.bundle?platform=ios&dev=true:66requireImpl @ index.ios.bundle?platform=ios&dev=true:34require @ index.ios.bundle?platform=ios&dev=true:26(anonymous function) @ index.ios.bundle?platform=ios&dev=true:1299JSTimersExecution.callbacks.(anonymous function) @ index.ios.bundle?platform=ios&dev=true:3678JSTimersExecution.callTimer @ index.ios.bundle?platform=ios&dev=true:3298JSTimersExecution.callTimers @ index.ios.bundle?platform=ios&dev=true:3321__callFunction @ index.ios.bundle?platform=ios&dev=true:2727(anonymous function) @ index.ios.bundle?platform=ios&dev=true:2633guard @ index.ios.bundle?platform=ios&dev=true:2589callFunctionReturnFlushedQueue @ index.ios.bundle?platform=ios&dev=true:2632onmessage @ debuggerWorker.js:39
index.ios.bundle?platform=ios&dev=true:50715 Error while loading goog.i18n.bidi.DirectionalString
index.ios.bundle?platform=ios&dev=true:6206 TypeError: Cannot read property 'substring' of undefined(…)reactConsoleError @ index.ios.bundle?platform=ios&dev=true:6206console.error @ index.ios.bundle?platform=ios&dev=true:50707global.console.(anonymous function) @ index.ios.bundle?platform=ios&dev=true:1288goog.require @ index.ios.bundle?platform=ios&dev=true:60014(anonymous function) @ index.ios.bundle?platform=ios&dev=true:105230requireImpl @ index.ios.bundle?platform=ios&dev=true:66require @ index.ios.bundle?platform=ios&dev=true:26goog.require @ index.ios.bundle?platform=ios&dev=true:60011(anonymous function) @ index.ios.bundle?platform=ios&dev=true:103452requireImpl @ index.ios.bundle?platform=ios&dev=true:66require @ index.ios.bundle?platform=ios&dev=true:26goog.require @ index.ios.bundle?platform=ios&dev=true:60011(anonymous function) @ index.ios.bundle?platform=ios&dev=true:103113requireImpl @ index.ios.bundle?platform=ios&dev=true:66require @ index.ios.bundle?platform=ios&dev=true:26goog.require @ index.ios.bundle?platform=ios&dev=true:60011(anonymous function) @ index.ios.bundle?platform=ios&dev=true:98458requireImpl @ index.ios.bundle?platform=ios&dev=true:66require @ index.ios.bundle?platform=ios&dev=true:26goog.require @ index.ios.bundle?platform=ios&dev=true:60011(anonymous function) @ index.ios.bundle?platform=ios&dev=true:98182requireImpl @ index.ios.bundle?platform=ios&dev=true:66require @ index.ios.bundle?platform=ios&dev=true:26goog.require @ index.ios.bundle?platform=ios&dev=true:60011(anonymous function) @ index.ios.bundle?platform=ios&dev=true:98160requireImpl @ index.ios.bundle?platform=ios&dev=true:66require @ index.ios.bundle?platform=ios&dev=true:26goog.require @ index.ios.bundle?platform=ios&dev=true:60011(anonymous function) @ index.ios.bundle?platform=ios&dev=true:60049requireImpl @ index.ios.bundle?platform=ios&dev=true:66require @ index.ios.bundle?platform=ios&dev=true:26(anonymous function) @ index.ios.bundle?platform=ios&dev=true:57429requireImpl @ index.ios.bundle?platform=ios&dev=true:66requireImpl @ index.ios.bundle?platform=ios&dev=true:34require @ index.ios.bundle?platform=ios&dev=true:26(anonymous function) @ index.ios.bundle?platform=ios&dev=true:1299JSTimersExecution.callbacks.(anonymous function) @ index.ios.bundle?platform=ios&dev=true:3678JSTimersExecution.callTimer @ index.ios.bundle?platform=ios&dev=true:3298JSTimersExecution.callTimers @ index.ios.bundle?platform=ios&dev=true:3321__callFunction @ index.ios.bundle?platform=ios&dev=true:2727(anonymous function) @ index.ios.bundle?platform=ios&dev=true:2633guard @ index.ios.bundle?platform=ios&dev=true:2589callFunctionReturnFlushedQueue @ index.ios.bundle?platform=ios&dev=true:2632onmessage @ debuggerWorker.js:39
index.ios.bundle?platform=ios&dev=true:50715 Error while loading goog.i18n.bidi.Dir
index.ios.bundle?platform=ios&dev=true:6206 Error: Requiring module "goog.i18n.bidi.Dir" which threw an exception(…)reactConsoleError @ index.ios.bundle?platform=ios&dev=true:6206console.error @ index.ios.bundle?platform=ios&dev=true:50707global.console.(anonymous function) @ index.ios.bundle?platform=ios&dev=true:1288goog.require @ index.ios.bundle?platform=ios&dev=true:60014(anonymous function) @ index.ios.bundle?platform=ios&dev=true:107575requireImpl @ index.ios.bundle?platform=ios&dev=true:66require @ index.ios.bundle?platform=ios&dev=true:26goog.require @ index.ios.bundle?platform=ios&dev=true:60011(anonymous function) @ index.ios.bundle?platform=ios&dev=true:103453requireImpl @ index.ios.bundle?platform=ios&dev=true:66require @ index.ios.bundle?platform=ios&dev=true:26goog.require @ index.ios.bundle?platform=ios&dev=true:60011(anonymous function) @ index.ios.bundle?platform=ios&dev=true:103113requireImpl @ index.ios.bundle?platform=ios&dev=true:66require @ index.ios.bundle?platform=ios&dev=true:26goog.require @ index.ios.bundle?platform=ios&dev=true:60011(anonymous function) @ index.ios.bundle?platform=ios&dev=true:98458requireImpl @ index.ios.bundle?platform=ios&dev=true:66require @ index.ios.bundle?platform=ios&dev=true:26goog.require @ index.ios.bundle?platform=ios&dev=true:60011(anonymous function) @ index.ios.bundle?platform=ios&dev=true:98182requireImpl @ index.ios.bundle?platform=ios&dev=true:66require @ index.ios.bundle?platform=ios&dev=true:26goog.require @ index.ios.bundle?platform=ios&dev=true:60011(anonymous function) @ index.ios.bundle?platform=ios&dev=true:98160requireImpl @ index.ios.bundle?platform=ios&dev=true:66require @ index.ios.bundle?platform=ios&dev=true:26goog.require @ index.ios.bundle?platform=ios&dev=true:60011(anonymous function) @ index.ios.bundle?platform=ios&dev=true:60049requireImpl @ index.ios.bundle?platform=ios&dev=true:66require @ index.ios.bundle?platform=ios&dev=true:26(anonymous function) @ index.ios.bundle?platform=ios&dev=true:57429requireImpl @ index.ios.bundle?platform=ios&dev=true:66requireImpl @ index.ios.bundle?platform=ios&dev=true:34require @ index.ios.bundle?platform=ios&dev=true:26(anonymous function) @ index.ios.bundle?platform=ios&dev=true:1299JSTimersExecution.callbacks.(anonymous function) @ index.ios.bundle?platform=ios&dev=true:3678JSTimersExecution.callTimer @ index.ios.bundle?platform=ios&dev=true:3298JSTimersExecution.callTimers @ index.ios.bundle?platform=ios&dev=true:3321__callFunction @ index.ios.bundle?platform=ios&dev=true:2727(anonymous function) @ index.ios.bundle?platform=ios&dev=true:2633guard @ index.ios.bundle?platform=ios&dev=true:2589callFunctionReturnFlushedQueue @ index.ios.bundle?platform=ios&dev=true:2632onmessage @ debuggerWorker.js:39
index.ios.bundle?platform=ios&dev=true:50715 Error while loading goog.i18n.bidi.DirectionalString
index.ios.bundle?platform=ios&dev=true:6206 Error: Requiring module "goog.i18n.bidi.DirectionalString" which threw an exception(…)reactConsoleError @ index.ios.bundle?platform=ios&dev=true:6206console.error @ index.ios.bundle?platform=ios&dev=true:50707global.console.(anonymous function) @ index.ios.bundle?platform=ios&dev=true:1288goog.require @ index.ios.bundle?platform=ios&dev=true:60014(anonymous function) @ index.ios.bundle?platform=ios&dev=true:107576requireImpl @ index.ios.bundle?platform=ios&dev=true:66require @ index.ios.bundle?platform=ios&dev=true:26goog.require @ index.ios.bundle?platform=ios&dev=true:60011(anonymous function) @ index.ios.bundle?platform=ios&dev=true:103453requireImpl @ index.ios.bundle?platform=ios&dev=true:66require @ index.ios.bundle?platform=ios&dev=true:26goog.require @ index.ios.bundle?platform=ios&dev=true:60011(anonymous function) @ index.ios.bundle?platform=ios&dev=true:103113requireImpl @ index.ios.bundle?platform=ios&dev=true:66require @ index.ios.bundle?platform=ios&dev=true:26goog.require @ index.ios.bundle?platform=ios&dev=true:60011(anonymous function) @ index.ios.bundle?platform=ios&dev=true:98458requireImpl @ index.ios.bundle?platform=ios&dev=true:66require @ index.ios.bundle?platform=ios&dev=true:26goog.require @ index.ios.bundle?platform=ios&dev=true:60011(anonymous function) @ index.ios.bundle?platform=ios&dev=true:98182requireImpl @ index.ios.bundle?platform=ios&dev=true:66require @ index.ios.bundle?platform=ios&dev=true:26goog.require @ index.ios.bundle?platform=ios&dev=true:60011(anonymous function) @ index.ios.bundle?platform=ios&dev=true:98160requireImpl @ index.ios.bundle?platform=ios&dev=true:66require @ index.ios.bundle?platform=ios&dev=true:26goog.require @ index.ios.bundle?platform=ios&dev=true:60011(anonymous function) @ index.ios.bundle?platform=ios&dev=true:60049requireImpl @ index.ios.bundle?platform=ios&dev=true:66require @ index.ios.bundle?platform=ios&dev=true:26(anonymous function) @ index.ios.bundle?platform=ios&dev=true:57429requireImpl @ index.ios.bundle?platform=ios&dev=true:66requireImpl @ index.ios.bundle?platform=ios&dev=true:34require @ index.ios.bundle?platform=ios&dev=true:26(anonymous function) @ index.ios.bundle?platform=ios&dev=true:1299JSTimersExecution.callbacks.(anonymous function) @ index.ios.bundle?platform=ios&dev=true:3678JSTimersExecution.callTimer @ index.ios.bundle?platform=ios&dev=true:3298JSTimersExecution.callTimers @ index.ios.bundle?platform=ios&dev=true:3321__callFunction @ index.ios.bundle?platform=ios&dev=true:2727(anonymous function) @ index.ios.bundle?platform=ios&dev=true:2633guard @ index.ios.bundle?platform=ios&dev=true:2589callFunctionReturnFlushedQueue @ index.ios.bundle?platform=ios&dev=true:2632onmessage @ debuggerWorker.js:39
index.ios.bundle?platform=ios&dev=true:50715 Error while loading goog.i18n.bidi.Dir
index.ios.bundle?platform=ios&dev=true:6206 Error: Requiring module "goog.i18n.bidi.Dir" which threw an exception(…)reactConsoleError @ index.ios.bundle?platform=ios&dev=true:6206console.error @ index.ios.bundle?platform=ios&dev=true:50707global.console.(anonymous function) @ index.ios.bundle?platform=ios&dev=true:1288goog.require @ index.ios.bundle?platform=ios&dev=true:60014(anonymous function) @ index.ios.bundle?platform=ios&dev=true:103454requireImpl @ index.ios.bundle?platform=ios&dev=true:66require @ index.ios.bundle?platform=ios&dev=true:26goog.require @ index.ios.bundle?platform=ios&dev=true:60011(anonymous function) @ index.ios.bundle?platform=ios&dev=true:103113requireImpl @ index.ios.bundle?platform=ios&dev=true:66require @ index.ios.bundle?platform=ios&dev=true:26goog.require @ index.ios.bundle?platform=ios&dev=true:60011(anonymous function) @ index.ios.bundle?platform=ios&dev=true:98458requireImpl @ index.ios.bundle?platform=ios&dev=true:66require @ index.ios.bundle?platform=ios&dev=true:26goog.require @ index.ios.bundle?platform=ios&dev=true:60011(anonymous function) @ index.ios.bundle?platform=ios&dev=true:98182requireImpl @ index.ios.bundle?platform=ios&dev=true:66require @ index.ios.bundle?platform=ios&dev=true:26goog.require @ index.ios.bundle?platform=ios&dev=true:60011(anonymous function) @ index.ios.bundle?platform=ios&dev=true:98160requireImpl @ index.ios.bundle?platform=ios&dev=true:66require @ index.ios.bundle?platform=ios&dev=true:26goog.require @ index.ios.bundle?platform=ios&dev=true:60011(anonymous function) @ index.ios.bundle?platform=ios&dev=true:60049requireImpl @ index.ios.bundle?platform=ios&dev=true:66require @ index.ios.bundle?platform=ios&dev=true:26(anonymous function) @ index.ios.bundle?platform=ios&dev=true:57429requireImpl @ index.ios.bundle?platform=ios&dev=true:66requireImpl @ index.ios.bundle?platform=ios&dev=true:34require @ index.ios.bundle?platform=ios&dev=true:26(anonymous function) @ index.ios.bundle?platform=ios&dev=true:1299JSTimersExecution.callbacks.(anonymous function) @ index.ios.bundle?platform=ios&dev=true:3678JSTimersExecution.callTimer @ index.ios.bundle?platform=ios&dev=true:3298JSTimersExecution.callTimers @ index.ios.bundle?platform=ios&dev=true:3321__callFunction @ index.ios.bundle?platform=ios&dev=true:2727(anonymous function) @ index.ios.bundle?platform=ios&dev=true:2633guard @ index.ios.bundle?platform=ios&dev=true:2589callFunctionReturnFlushedQueue @ index.ios.bundle?platform=ios&dev=true:2632onmessage @ debuggerWorker.js:39
index.ios.bundle?platform=ios&dev=true:50715 Error while loading goog.i18n.bidi.DirectionalString
index.ios.bundle?platform=ios&dev=true:6206 Error: Requiring module "goog.i18n.bidi.DirectionalString" which threw an exception(…)reactConsoleError @ index.ios.bundle?platform=ios&dev=true:6206console.error @ index.ios.bundle?platform=ios&dev=true:50707global.console.(anonymous function) @ index.ios.bundle?platform=ios&dev=true:1288goog.require @ index.ios.bundle?platform=ios&dev=true:60014(anonymous function) @ index.ios.bundle?platform=ios&dev=true:103455requireImpl @ index.ios.bundle?platform=ios&dev=true:66require @ index.ios.bundle?platform=ios&dev=true:26goog.require @ index.ios.bundle?platform=ios&dev=true:60011(anonymous function) @ index.ios.bundle?platform=ios&dev=true:103113requireImpl @ index.ios.bundle?platform=ios&dev=true:66require @ index.ios.bundle?platform=ios&dev=true:26goog.require @ index.ios.bundle?platform=ios&dev=true:60011(anonymous function) @ index.ios.bundle?platform=ios&dev=true:98458requireImpl @ index.ios.bundle?platform=ios&dev=true:66require @ index.ios.bundle?platform=ios&dev=true:26goog.require @ index.ios.bundle?platform=ios&dev=true:60011(anonymous function) @ index.ios.bundle?platform=ios&dev=true:98182requireImpl @ index.ios.bundle?platform=ios&dev=true:66require @ index.ios.bundle?platform=ios&dev=true:26goog.require @ index.ios.bundle?platform=ios&dev=true:60011(anonymous function) @ index.ios.bundle?platform=ios&dev=true:98160requireImpl @ index.ios.bundle?platform=ios&dev=true:66require @ index.ios.bundle?platform=ios&dev=true:26goog.require @ index.ios.bundle?platform=ios&dev=true:60011(anonymous function) @ index.ios.bundle?platform=ios&dev=true:60049requireImpl @ index.ios.bundle?platform=ios&dev=true:66require @ index.ios.bundle?platform=ios&dev=true:26(anonymous function) @ index.ios.bundle?platform=ios&dev=true:57429requireImpl @ index.ios.bundle?platform=ios&dev=true:66requireImpl @ index.ios.bundle?platform=ios&dev=true:34require @ index.ios.bundle?platform=ios&dev=true:26(anonymous function) @ index.ios.bundle?platform=ios&dev=true:1299JSTimersExecution.callbacks.(anonymous function) @ index.ios.bundle?platform=ios&dev=true:3678JSTimersExecution.callTimer @ index.ios.bundle?platform=ios&dev=true:3298JSTimersExecution.callTimers @ index.ios.bundle?platform=ios&dev=true:3321__callFunction @ index.ios.bundle?platform=ios&dev=true:2727(anonymous function) @ index.ios.bundle?platform=ios&dev=true:2633guard @ index.ios.bundle?platform=ios&dev=true:2589callFunctionReturnFlushedQueue @ index.ios.bundle?platform=ios&dev=true:2632onmessage @ debuggerWorker.js:39
index.ios.bundle?platform=ios&dev=true:1288 Starting shim setup
index.ios.bundle?platform=ios&dev=true:1288 Shimming goog functions.
index.ios.bundle?platform=ios&dev=true:1288 Done shimming
Tried to dig into this today a bit. I think the errors are related to the code in https://github.com/mjmeintjes/boot-react-native/blob/master/resources/mattsum/boot_rn/js/goog_base.js The stack traces are pretty confusing, however. Couldn't find out where the substring
call comes from.
The comments in goog_base.js
say that some errors are expected and should be ignored for now. Does that include the goog.i18n.bidi
related problems?
Will try to work on this in the next few days. Ping me in the #cljsrn channel for lower latency communication (CET).
The problem seems to be that goog.LOCALE
is not set. If I read this correctly https://github.com/google/closure-library/blob/master/closure/goog/base.js#L185, this should automatically default to "en". But perhaps it doesn't get set properly because of the way google closue is loaded.
Opened up a PR for boot-reload
which fixes another red screen: adzerk-oss/boot-reload#55
Have a look at https://github.com/mjmeintjes/boot-react-native/blob/master/src/mattsum/boot_react_native.clj#L108, where I already disable some of boot-reload's display related functionality. Not sure why you are still getting an error related to that?
Not sure either, but the stack trace points at the boot-reload HUD firing "style" and "createElement" related errors on iOS. Didn't try to fix the shim, but thought it would be better solve it at the root, so we don't need the shim anymore.
Agreed regarding fixing at source. Would be great if we could get boot-reload to work as-is without shimming.
Only thing that we are going to miss out on is that currently the warnings are being redirect to console.log, whereas with just disabling the hud, we lose those warnings. Not sure if that's a big problem.