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.

Updated to new ngx-scanner 3.1.0 with error

See original GitHub issue
ERROR in The target entry-point "@zxing/ngx-scanner" has missing dependencies:
 - @zxing/browser
 - @zxing/library

Now we should install this packages manually?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

5reactions
odahcamcommented, Oct 27, 2020

Long answer: it should be that way long ago, it just wasn’t because the dependencies of the package were set wrong, this way (using peer dependencies instead of dependencies) users have more control over their own dependencies and can use the underlying packages directly if they want to, without conflicting or experiencing annoying behaviours. You can also benefit from patches from both packages where you couldn’t before, having to wait until the next ngx-scanner release to get a patch already done, for example, in zxing/library.

It’s good you pointed this out, our README should be updated to inform this “change” as well. Also, please update to v3.1.1, it contains some important bug fixes.

2reactions
odahcamcommented, Oct 28, 2020

Kind of, the…

  • library is the underlying ZXing library ported from Java code that contains only logical stuff that should run in any JS environment (it does contains a browser layer, but it’s deprecated and we consider only the core for now).
  • browser is the layer built over the library and makes use of it’s logical stuff plus available browser APIs to extend functionality and help developers start with browser barcode scanning without the need to deep dive into the library.
  • ngx-scanner is basically the browser package being wrapped in an Angular component.
Read more comments on GitHub >

github_iconTop Results From Across the Web

Updated to new ngx-scanner 3.1.0 with error - Bountysource
ERROR in The target entry-point "@zxing/ngx-scanner" has missing dependencies: - @zxing/browser - @zxing/library.
Read more >
zxing-js/ngx-scanner - Gitter
hey there. I've been facing some issues with the ngx-scanner component in Cordova on ios. I installed the cordova-iosrtc plugin but I still...
Read more >
@zxing/ngx-scanner versions and peer dependencies
Online Peer dependency version tool to search for compatible versions of related NPM packages.
Read more >
error NG6002: Appears in the NgModule.imports of <module ...
I just updated from Angular 8.2 to 9. Everything works well if I disable ivy, but when it's enabled I'm getting a lot...
Read more >
Angular 13 QR Code Scanner Using Webcam and Display ...
Angular 13 QR Code Scanner Using Webcam and Display Info in Browser Using ngx-scanner -qrcode in TS. 4.1K views Streamed 6 months ago....
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