nativescript-ar icon indicating copy to clipboard operation
nativescript-ar copied to clipboard

TypeError: Cannot read property 'mainScreen' of undefined

Open donmb1 opened this issue 4 years ago • 0 comments

CONSOLE LOG: TypeError: Could not load view for: nativear. TypeError: Cannot read property 'mainScreen' of undefined TypeError: Cannot read property 'mainScreen' of undefined
at Object.../node_modules/nativescript-ar/nodes/ios/aruiview.js (file: node_modules/nativescript-ar/nodes/ios/aruiview.js:6:45)
at __webpack_require__ (file: app/webpack/bootstrap:816:0)
at fn (file: app/webpack/bootstrap:120:0)
at Object.../node_modules/nativescript-ar/ar.js (file: node_modules/nativescript-ar/ar.ios.js:17:17)
at __webpack_require__ (file: app/webpack/bootstrap:816:0)
at fn (file: app/webpack/bootstrap:120:0)
at Object.resolver (file:///app/bundle.js:155:85)
at getViewClass (file: node_modules/nativescript-vue/dist/index.js:7664:17)
at new ElementNode (file: node_modules/nativescript-vue/dist/index.js:8474:20)
at Function.createElement (file: node_modules/nativescript-vue/dist/index.js:8586:13)
***** Fatal JavaScript exception - application has been terminated. *****
NativeScript encountered a fatal error: Uncaught TypeError: Cannot read property 'setAttribute' of undefined
at
setStyleScope(file: node_modules/nativescript-vue/dist/index.js:8681:7)
at setScope(file: node_modules/nativescript-vue/dist/index.js:5430:18)
at createElm(file: node_modules/nativescript-vue/dist/index.js:5291:6)
at createChildren(file: node_modules/nativescript-vue/dist/index.js:5394:8)
at createElm(file: node_modules/nativescript-vue/dist/index.js:5295:8)
at createChildren(file: node_modules/nativescript-vue/dist/index.js:5394:8)
at createElm(file: node_modules/nativescript-vue/dist/index.js:5295:8)
at patch(file: node_modules/nativescript-vue/dist/index.js:5818:6)
at Vue._update(file: node_modules/nativescript-vue/dist/index.js:4830:18)
at updateComponent(file: node_modules/nativescript-vue/dist/index.js:4951:9)
at get(file: node_modules/nativescript-vue/dist/index.js:2336:24)
at Watcher(file: node_modules/nativescript-vue/dist/index.js:2325:11)
at mountComponent(file: node_modules/nativescript-vue/dist/index.js:4958:2)
at push.../node_modules/nativescript-vue/dist/index.js.Vue.$mount(file: node_modules/nativescript-vue/dist/index.js:12519:9)
at init(file: node_modules/nativescript-vue/dist/index.js:4005:12)
at createComponent(file: node_modules/nativescript-vue/dist/index.js:5319:9)
at createElm(file: node_modules/nativescript-vue/dist/index.js:5266:8)
at patch(file: node_modules/nativescript-vue/dist/index.js:5818:6)
at Vue._update(file://<\M-b\M^@\M-&>
*** Terminating app due to uncaught exception 'NativeScript encountered a fatal error: Uncaught TypeError: Cannot read property 'setAttribute' of undefined
at

Make sure to check the demo app(s) for sample usage

Make sure to check the existing issues in this repository

If the demo apps cannot help and there is no issue for your problem, tell us about it

Which platform(s) does your issue occur on?

  • iOS

Please, provide the following version numbers that your issue occurs with:

  • CLI: 7.0.11
  • Cross-platform modules: 6.1.1
  • Runtime(s): tns-ios 7.0.4
  • Plugin(s): nativescript-ar: "^1.1.0"

Please, tell us how to recreate the issue in as much detail as possible.

add an AR view to the home component tns run ios

Is there any code involved?

I guess the error is located here: https://github.com/EddyVerbruggen/nativescript-ar/blob/master/src/nodes/ios/aruiview.ts

Line 6

donmb1 avatar Nov 06 '20 08:11 donmb1