Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Cannot read property 'mainScreen' of undefined #108

Open
donmb1 opened this issue Nov 6, 2020 · 0 comments
Open

TypeError: Cannot read property 'mainScreen' of undefined #108

donmb1 opened this issue Nov 6, 2020 · 0 comments

Comments

@donmb1
Copy link

donmb1 commented Nov 6, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant