Latest NativeScript + Angular is broken - nativescript

I updated nativeScript, #angular/cli and #nativescript/schematics to their latest stable version. Generated a new project as:
ng new port --collection=#nativescript/schematics --shared --style=scss --prefix=port
followed by
tns run ios --bundle
Error:
***** Fatal JavaScript exception - application has been terminated. *****
Native stack trace:
1 0x10da0702e NativeScript::reportFatalErrorBeforeShutdown(JSC::ExecState*, JSC::Exception*, bool)
2 0x10da58f94 -[TNSRuntime executeModule:referredBy:]
3 0x10d2f50b3 main
4 0x7fff51a231fd start
5 0x1
JavaScript stack trace:
file: node_modules/#nativescript/angular/__ivy_ngcc__/zone-js/dist/zone-nativescript.js:32:0
at file: node_modules/#nativescript/angular/__ivy_ngcc__/zone-js/dist/zone-nativescript.js:645:1
at file: node_modules/#nativescript/angular/__ivy_ngcc__/zone-js/dist/zone-nativescript.js:9:61
at file: node_modules/#nativescript/angular/__ivy_ngcc__/zone-js/dist/zone-nativescript.js:12:1
at ../node_modules/#nativescript/angular/__ivy_ngcc__/zone-js/dist/zone-nativescript.js(file:///app/vendor.js:103073:34)
at __webpack_require__(file: src/webpack/bootstrap:752:0)
at fn(file: src/webpack/bootstrap:120:0)
at file: node_modules/#nativescript/angular/__ivy_ngcc__/platform-common.js:6:8
at ../node_modules/#nativescript/angular/__ivy_ngcc__/platform-common.js(file:///app/vendor.js:97913:34)
at __webpack_require__(file: src/webpack/bootstrap:752:0)
at fn(file: src/webpack/bootstrap:120:0)
at ../node_modules/#nativescript/angular/__ivy_ngcc__/index.js(file: node_modules/#nativescript/angular/__ivy_ngcc__/index.js:6:17)
at __webpack_require__(file: src/webpack/bootstrap:752:0)
at fn(file: src/webpack/bootstrap:120:0)
at ./app/app.module.tns.ts(file: src/app/app.module.tns.ts:1:0)
at __webpack_require__(file: src/webpack/bootstrap:752:0)
at fn(file: src/webpack/bootstrap:120:0)
at file:///app/bundle.js:240:96
at ./main.tns.ts(file:///app/bundle.js:298:34)
at __webpack_require__(fi<…>
JavaScript error:
file: node_modules/#nativescript/angular/__ivy_ngcc__/zone-js/dist/zone-nativescript.js:32:0: JS ERROR Error: Zone already loaded.
(CoreFoundation) *** Terminating app due to uncaught exception 'NativeScript encountered a fatal error: Error: Zone already loaded

the many issue with nativescript angular9 and ivy.
but to fix this error just use zone.js 0.9.1

Related

RocksDB exception in Kafka Streams with kafka_2.13-3.2.0 running on Window

I have kafka 2.13-3.2.0 running on Window machine. I am trying stream Join operation and getting following error. I can see same issue fixed in 1.0.1 version as per : https://issues.apache.org/jira/browse/KAFKA-6162
But I am still getting this error with kafka 2.13-3.2.0.
Error Logs:
Caused by: org.rocksdb.RocksDBException: Failed to create dir: D:\tmp\kafka-streams\join_driver_application\1_0\KSTREAM-JOINTHIS-0000000014-store\KSTREAM-JOINTHIS-0000000014-store:1661385600000: Invalid argument
at org.rocksdb.RocksDB.open(Native Method)
at org.rocksdb.RocksDB.open(RocksDB.java:231)
at org.apache.kafka.streams.state.internals.RocksDBStore.openDB(RocksDBStore.java:197)
... 23 more

Getting Laravel error while hosting on shared hosting

Warning: require(/storage/ssd1/943/12963943/public_html/vendor/composer/../symfony/polyfill-mbstring/bootstrap.php): failed to open stream: No such file or directory in /storage/ssd1/943/12963943/public_html/vendor/composer/autoload_real.php on line 66
Warning: require(/storage/ssd1/943/12963943/public_html/vendor/composer/../symfony/polyfill-mbstring/bootstrap.php): failed to open stream: No such file or directory in /storage/ssd1/943/12963943/public_html/vendor/composer/autoload_real.php on line 66
Fatal error: require(): Failed opening required '/storage/ssd1/943/12963943/public_html/vendor/composer/../symfony/polyfill-mbstring/bootstrap.php' (include_path='.:/usr/share/pear:/usr/share/php') in /storage/ssd1/943/12963943/public_html/vendor/composer/autoload_real.php on line 66

Release mode crashes when building react-native app using xcode

Module AppRegistry is not a registered callable module (calling
runApplication)
when running in release mode a react-native app
xcode: 10.1
react-native: 0.57
When running a react-native app in release mode, it crashes and shows warning message as follows
It is working fine while running as debug mode.
2019-02-11 15:33:04.330531+0800 EASE[1709:691989] [DYMTLInitPlatform] platform initialization successful
2019-02-11 15:33:04.639426+0800 EASE[1709:691855] =======>>>>-[ViewController initWithNibName:bundle:]
2019-02-11 15:33:04.639721+0800 EASE[1709:691855] ================ViewController :going initWithNibName, storyBoard goto ===========
2019-02-11 15:33:04.639739+0800 EASE[1709:691855] ================ViewController :start sync===========
2019-02-11 15:33:04.641529+0800 EASE[1709:691855] ===========Here is the synchronization when the program starts============
2019-02-11 15:33:05.069459+0800 EASE[1709:691855] The application is in the foreground and is active
2019-02-11 15:33:05.468 [error][tid:com.facebook.react.JavaScript] Can't find variable: n
2019-02-11 15:33:05.467943+0800 EASE[1709:692012] Can't find variable: n
2019-02-11 15:33:05.470 [fatal][tid:com.facebook.react.ExceptionsManagerQueue] Unhandled JS Exception: Can't find variable: n
2019-02-11 15:33:05.469853+0800 EASE[1709:692009] Unhandled JS Exception: Can't find variable: n
2019-02-11 15:33:05.471 [error][tid:com.facebook.react.JavaScript] Module AppRegistry is not a registered callable module (calling runApplication)
2019-02-11 15:33:05.471115+0800 EASE[1709:692012] Module AppRegistry is not a registered callable module (calling runApplication)
2019-02-11 15:33:05.476228+0800 EASE[1709:692009] *** Terminating app due to uncaught exception 'RCTFatalException: Unhandled JS Exception: Can't find variable: n', reason: 'Unhandled JS Exception: Can't find variable: n, stack:
<unknown>#1163:26828t#1163:474
<unknown>#1163:788t#1163:474
<unknown>#1163:703t#1163:474
<unknown>#1163:588t#1163:474
<unknown>#1163:418355v#2:1483
<unknown>#1162:69v#2:1483
<unknown>#1161:376v#2:1483
<unknown>#1160:592v#2:1483
<unknown>#1159:572v#2:1483
<unknown>#1158:661v#2:1483
<unknown>#998:5169v#2:1483
<unknown>#948:263v#2:1483
<unknown>#946:98v#2:1483
<unknown>#945:49v#2:1483
<unknown>#944:78v#2:1483
<unknown>#943:79v#2:1483
<unknown>#942:49v#2:1483
<unknown>#718:79v#2:1483
<unknown>#717:66v#2:1483
<unknown>#716:51v#2:1483
<unknown>#715:116v#2:1483
<unknown>#714:148v#2:1483
<unknown>#713:176v#2:1483
<unknown>#705:180v#2:1483
<unknown>#704:183v#2:1483
<unknown>#668:223v#2:1483
<unknown>#659:271v#2:1483
<unknown>#658:28v#2:1483
<unknown>#657:138v#2:1483
<unknown>#528:128v#2:1483
<unknown>#343:418v#2:1483
<unknown>#11:58v#2:1483d#2:866global code#2177:4'
*** First throw call stack:
(0x23b373ea0 0x23a545a40 0x105030e30 0x10502d238 0x23b37b600
0x23b259530 0x23b25a114 0x105045030 0x10508be7c 0x10508bbd8
0x10817f824 0x108180dc8 0x108188e6c 0x108189b60 0x108193bfc
0x23af900dc 0x23af92cec)
libc++abi.dylib: terminating with uncaught exception of type
NSException
(lldb)
App doesn't crash when running in both release mode and debug mode

Xcode error running react native NSInvalidArgumentException

I am getting the following error while running a react native project in xcode:
2018-07-12 14:19:13.336 [info][tid:main][RCTCxxBridge.mm:210]
Initializing <RCTCxxBridge: 0x6000001d4be0> (parent: <RCTBridge: 0x6080002c1260>, executor: (null))
2018-07-12 14:19:13.338799+0200 pleasefix[16614:4513384] Initializing
<RCTCxxBridge: 0x6000001d4be0> (parent: <RCTBridge: 0x6080002c1260>,
executor: (null))
2018-07-12 14:19:13.444 [warn][tid:main][RCTBridge.m:119] Class
RCTCxxModule was not exported. Did you forget to use
RCT_EXPORT_MODULE()?
2018-07-12 14:19:13.444411+0200 pleasefix[16614:4513384] Class
RCTCxxModule was not exported. Did you forget to use
RCT_EXPORT_MODULE()?
2018-07-12 14:19:13.471746+0200 pleasefix[16614:4513384] -[RCTCxxBridge
devSettings]: unrecognized selector sent to instance 0x6000001d4be0
2018-07-12 14:19:13.487811+0200 pleasefix[16614:4513384] *** Terminating
app due to uncaught exception 'NSInvalidArgumentException', reason: '-
[RCTCxxBridge devSettings]: unrecognized selector sent to instance
0x6000001d4be0'
Has anyone experienced this issue? Any ideas how to fix?

Error attaching debugger with nuclide to Expo local server

I am trying to attach the Nuclide debugger to Expo local server (port 19001), but it is showing me the following error :
Adapter node: v8.10.0 x64
vscode-chrome-debug-core: 3.17.10
Starting debugger app worker.
******** Unhandled error in debug adapter - Unhandled promise rejection: Error: spawn react-native.cmd ENOENT
at _errnoException (util.js:1022:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:190:19)
at onErrorNT (internal/child_process.js:372:16)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
Followed by:
Could not debug. Invalid Version:

Resources