This repository was archived by the owner on Apr 5, 2022. It is now read-only.
This repository was archived by the owner on Apr 5, 2022. It is now read-only.
TypeError: Cannot read property 'setAttribute' of undefined at Object.o.createLiveStream #25
Open
Description
I'm getting an error in my Ionic Capacitor Vue app on the line src/Scanner.vue#L112 which is calling Quagga.init(this.quaggaState, function(err) {
vue.runtime.esm.js?2b0e:1888 TypeError:
Cannot read property 'setAttribute' of undefined at Object.o.createLiveStream
I imported the component in my main.js
import VueQuagga from 'vue-quaggajs';
Vue.use(VueQuagga);
And using the suggested vue tag
<v-quagga :onDetected="onDetected" :readerSize="readerSize" :readerTypes="['ean_reader']"></v-quagga>
Here's what the output of my quaggaState
looks like:
{
"inputStream": {
"type": "LiveStream",
"constraints": {
"width": {
"min": 400
},
"height": {
"min": 400
},
"facingMode": "environment",
"aspectRatio": {
"min": 1,
"max": 2
}
}
},
"locator": {
"patchSize": "medium",
"halfSample": true
},
"numOfWorkers": 2,
"frequency": 10,
"decoder": {
"readers": ["ean_reader"]
},
"locate": true
}
Looks like it's related to serratus/quaggaJS#394?
Metadata
Metadata
Assignees
Labels
No labels