ngx-scanner v.3.6.2 is not compatible with Angular 13
See original GitHub issueI 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' }
To use ngx-scanner Angular 13 in dependencies use version 3.5.0:
"@zxing/ngx-scanner": "3.5.x"
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:6 (2 by maintainers)
Top 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 >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
I’m talking about Angular 13. Not 14!
Mine is working perfectly fine on the latest version of angular.
Got no issues at all