Hello,
I have this error when running ns run ios command, the app won't start automatically.
It does work if I click on the app icon and start it manually.
*** Terminating app due to uncaught exception 'NativeScript encountered a fatal error: Uncaught TypeError: Cannot read property 'rootViewController' of null
at
getVisibleViewController(file: src/webpack:/nipendo/node_modules/@nativescript/ui-charts/ui-charts.ios.js:96:0)
at createNativeView(file: src/webpack:/nipendo/node_modules/@nativescript/ui-charts/ui-charts.ios.js:17:0)
at _setupUI(file: src/webpack:/nipendo/node_modules/@nativescript/core/ui/core/view-base/index.js:557:0)
at (file: src/webpack:/nipendo/node_modules/@nativescript/core/ui/core/view-base/index.js:603:0)
at eachChildView(file: src/webpack:/nipendo/node_modules/@nativescript/core/ui/layouts/layout-base-common.js:101:0)
at eachChild(file: src/webpack:/nipendo/node_modules/@nativescript/core/ui/core/view/view-common.js:772:0)
at _setupUI(file: src/webpack:/nipendo/node_modules/@nativescript/core/ui/core/view-base/index.js:602:0)
at (file: src/webpack:/nipendo/node_modules/@nativescript/core/ui/core/view-base/index.js:603:0)
at eachChild(file: src/webpack:/nipendo/node_modules/@nativescript-community/ui-material-core-tabs/tab-content-item/tab-content-item-common.js:6:0)
at _setupUI(file: src/webpack:/nipendo/node_modules/@nativescript/core/ui/core/view-base/index.js:602:0)
at (file: src/webpack:/nipendo/node_modules/@nativescript/core/ui/core/view-base/index.js:603:0)
at (file: src/webpack:/nipendo/node_modules/@nativescript-community/ui-material-core-tabs/tab-navigation-base/index.js:36:0)
at eachChild(file: src/webpack:/nipendo/node_modules/@nativescript-community/ui-material-core-tabs/tab-navigation-base/index.js:35:0)
at _setupUI(file: src/webpack:/nipendo/node_modules/@nativescript/core/ui/core/view-base/index.js:602:0)
at (file: src/webpack:/nipendo/node_modules/@nativescript/core/ui/core/view-base/index.js:603:0)
at eachChildView(file: src/webpack:/nipendo/node_modules/@nativescript/core/ui/layouts/layout-base-common.js:101:0)
at eachChild(file: src/webpack:/nipendo/node_modules/@nativescript/core/ui/core/view/view-common.js:772:0)
at _setupUI(file: src/webpack:/nipendo/node_modules/@nativescript/core/ui/core/view-base/index.js:602:0)
at (file: src/webpack:/nipendo/node_modules/@nativescript/core/ui/core/view-base/index.js:603:0)
Which platform(s) does your issue occur on?
iOS
iOS - 15.3.1
emulator or device. What type of device?
iPhone 7 Plus device
Please, provide the following version numbers that your issue occurs with:
Hello, I have this error when running ns run ios command, the app won't start automatically. It does work if I click on the app icon and start it manually.
*** Terminating app due to uncaught exception 'NativeScript encountered a fatal error: Uncaught TypeError: Cannot read property 'rootViewController' of null at getVisibleViewController(file: src/webpack:/nipendo/node_modules/@nativescript/ui-charts/ui-charts.ios.js:96:0) at createNativeView(file: src/webpack:/nipendo/node_modules/@nativescript/ui-charts/ui-charts.ios.js:17:0) at _setupUI(file: src/webpack:/nipendo/node_modules/@nativescript/core/ui/core/view-base/index.js:557:0) at (file: src/webpack:/nipendo/node_modules/@nativescript/core/ui/core/view-base/index.js:603:0) at eachChildView(file: src/webpack:/nipendo/node_modules/@nativescript/core/ui/layouts/layout-base-common.js:101:0) at eachChild(file: src/webpack:/nipendo/node_modules/@nativescript/core/ui/core/view/view-common.js:772:0) at _setupUI(file: src/webpack:/nipendo/node_modules/@nativescript/core/ui/core/view-base/index.js:602:0) at (file: src/webpack:/nipendo/node_modules/@nativescript/core/ui/core/view-base/index.js:603:0) at eachChild(file: src/webpack:/nipendo/node_modules/@nativescript-community/ui-material-core-tabs/tab-content-item/tab-content-item-common.js:6:0) at _setupUI(file: src/webpack:/nipendo/node_modules/@nativescript/core/ui/core/view-base/index.js:602:0) at (file: src/webpack:/nipendo/node_modules/@nativescript/core/ui/core/view-base/index.js:603:0) at (file: src/webpack:/nipendo/node_modules/@nativescript-community/ui-material-core-tabs/tab-navigation-base/index.js:36:0) at eachChild(file: src/webpack:/nipendo/node_modules/@nativescript-community/ui-material-core-tabs/tab-navigation-base/index.js:35:0) at _setupUI(file: src/webpack:/nipendo/node_modules/@nativescript/core/ui/core/view-base/index.js:602:0) at (file: src/webpack:/nipendo/node_modules/@nativescript/core/ui/core/view-base/index.js:603:0) at eachChildView(file: src/webpack:/nipendo/node_modules/@nativescript/core/ui/layouts/layout-base-common.js:101:0) at eachChild(file: src/webpack:/nipendo/node_modules/@nativescript/core/ui/core/view/view-common.js:772:0) at _setupUI(file: src/webpack:/nipendo/node_modules/@nativescript/core/ui/core/view-base/index.js:602:0) at (file: src/webpack:/nipendo/node_modules/@nativescript/core/ui/core/view-base/index.js:603:0)
Which platform(s) does your issue occur on?
iOS
iOS - 15.3.1
emulator or device. What type of device? iPhone 7 Plus device
Please, provide the following version numbers that your issue occurs with:
CLI: 8.2.2
Cross-platform modules: 8.2.1
Runtime(s): ~8.2.1
Plugin(s): @nativescript/ui-charts": "^0.2.0", @nativescript-community/ui-material-bottom-navigation": "^7.0.2"
Please, tell us how to recreate the issue in as much detail as possible.
Describe the steps to reproduce it. Run the ns run ios when the charts inside a component that run in bottom navigation