npm i quagga, doesn't install a working version of Quagga
See original GitHub issueHello, I could not understand why Quagga was not working- no viewport finder doing it’s thing, and not console logs. Not until I went from importing the npm Quagga module and started using a local quagga js file did it start to work. I was using the live_w_locator.js
and importing quagga like import Quagga from 'quagga';
and that’s the only step to reproduce.
Issue Analytics
- State:
- Created 5 years ago
- Comments:6
Top Results From Across the Web
quagga - npm
An advanced barcode-scanner written in JavaScript. Latest version: 0.12.1, last published: 6 years ago. Start using quagga in your project ...
Read more >@ericblade/quagga2 - npm Package Health Analysis | Snyk
By installing the npm module and copying the quagga.js file from the dist folder. ... Working with a development version from another project....
Read more >Quagga (http://www.quagga.net)
The ripd daemon handles the RIP protocol, while ospfd is a daemon which supports OSPF version 2. bgpd supports the BGP-4 protocol. For...
Read more >cant use webcam in phone but in pc it works fine
SOLVED! for the chrome version that is 47+, it seems like you don't have permission to use the camera on unsecure website, and...
Read more >Can I have Composer or something else download a Git repo ...
I'm working on a module and there is a sub module for scanning barcodes that requires this, quagga. Currently you have to manually...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
in angular app:
import Quagga from 'quagga'; // undefined
import * as Quagga from 'quagga'; // <- this works
Couple of sanity check things you can do:
Make sure you aren’t importing quagga twice (say once through a script tag in your html file and again as an import). If you’re using webpack and splitting chunks then check to make sure you are adding the correct files in your html file (this may all seem obvious but you can waste hours on simple mistakes like this). Try this old react example https://github.com/serratus/quagga-react-example and see if that works (it does for me)