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.

ngx-scanner v.3.6.2 is not compatible with Angular 13

See original GitHub issue

I could update ngx-scanner via npm from version 3.4.2 to 3.6.2. But when I try to build the project I get an error, that the module requires Angular 14 only:

./node_modules/@zxing/ngx-scanner/fesm2015/zxing-ngx-scanner.mjs - Error: Module build failed (from ./node_modules/@angular-devkit/build-angular/src/babel/webpack-loader.js):
TypeError: Cannot create property 'message' on string 'C:\git\TicketingApp-pwa\src\pwa\node_modules\@zxing\ngx-scanner\fesm2015\zxing-ngx-scanner.mjs: This application depends upon a library published using Angular version 14.0.2, which requires Angular version 14.0.0 or newer to work correctly.
Consider upgrading your application to use a more recent version of Angular.

Testing dependencies tree:

> npm view ngx-scanner dependencies
{ tslib: '^1.9.0' }

image

To use ngx-scanner Angular 13 in dependencies use version 3.5.0:

"@zxing/ngx-scanner": "3.5.x"

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:1
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
rvalitovcommented, Oct 18, 2022

I’m talking about Angular 13. Not 14!

1reaction
0pahhcommented, Oct 18, 2022

Mine is working perfectly fine on the latest version of angular.

Got no issues at all

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues · zxing-js/ngx-scanner - GitHub
Angular (2+) QR code, Barcode, DataMatrix, scanner component using ZXing. ... ngx-scanner v.3.6.2 is not compatible with Angular 13 bug.
Read more >
@zxing/ngx-scanner - npm
High-performance Angular barcode scanner component based on ZXing. ... Some previews may not be fully updated, please check the version.
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 >
@zxing/ngx-scanner vulnerabilities | Snyk
version published direct vulnerabilities 3.8.0 20 Nov, 2022 0. C. 0. H. 0. M. 0. L 3.6.2 17 Jun, 2022 0. C. 0. H. 0....
Read more >
What is the requirements of Zxing/ngx-scanner? : r/angular
What is the minimum browser requirements or OS version (mobile) of https://www.npmjs.com/package/@zxing/ngx-scanner ?
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