EddyVerbruggen / nativescript-ar

Augmented Reality NativeScript plugin
https://www.nativescript.org/blog/preview-of-augmented-reality-in-nativescript
MIT License
118 stars 36 forks source link

Cannot read property 'setAttribute' of undefined #107

Open donmb1 opened 3 years ago

donmb1 commented 3 years ago

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?

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

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 commented 3 years ago

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