serratus / quaggaJS

An advanced barcode-scanner written in JavaScript
https://serratus.github.io/quaggaJS/
MIT License
5.06k stars 979 forks source link

Uncaught ReferenceError: qu is not defined #350

Open jkga opened 5 years ago

jkga commented 5 years ago

Importing Quagga in es6 yields Uncaught ReferenceError: qu is not defined. Initialization finished but shows an error after a few seconds..

import Quagga from 'quagga'

However, including quagga in a traditional <script> works just fine

ericblade commented 5 years ago

I know that we've run into this elsewhere before, and it's due to a configuration error in packaging at the app end. I'll leave this open for a bit, though, in case someone knows the correct answer to fix it . . . searching closed issues may help. I'm mobile right now, so it's a bit difficult for me to dig.

I know 100% that it's not an issue for everyone, as I'm using it with an es6 import.