question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

npm i quagga, doesn't install a working version of Quagga

See original GitHub issue

Hello, 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:open
  • Created 5 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
sam-lexcommented, May 15, 2018

in angular app:
import Quagga from 'quagga'; // undefined import * as Quagga from 'quagga'; // <- this works

0reactions
BenAttenboroughcommented, Feb 21, 2019

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)

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found