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

Cannot read property 'setAttribute' of undefined #107

Open
donmb1 opened this issue Nov 4, 2020 · 1 comment
Open

Cannot read property 'setAttribute' of undefined #107

donmb1 opened this issue Nov 4, 2020 · 1 comment

Comments

@donmb1
Copy link

donmb1 commented Nov 4, 2020

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
  • iOS 14
  • iPhone 11

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

  • CLI: 7.0.11
  • Plugin(s): ´nativescript-ar´ 1.1.0

nativescript/core: 7.0.0
nativescript-vue: 2.8.1

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

Followed this tutorial:
https://medium.com/javascript-in-plain-english/getting-started-with-augmented-reality-using-nativescript-vue-6ea434b28e2b

Throws this error while running tns run ios:

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)```
@Bezlepkin
Copy link

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
  • iOS 14
  • iPhone 11

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

  • CLI: 7.0.11
  • Plugin(s): ´nativescript-ar´ 1.1.0

nativescript/core: 7.0.0
nativescript-vue: 2.8.1

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

Followed this tutorial:
https://medium.com/javascript-in-plain-english/getting-started-with-augmented-reality-using-nativescript-vue-6ea434b28e2b

Throws this error while running tns run ios:

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)```

Hi! I created a fork, updated the dependencies, built a package. You can use my npm package.
https://www.npmjs.com/package/@bezlepkin/nativescript-ar

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

2 participants