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.

Build Warning on Angular10

See original GitHub issue

We get these warnings on build after an upgrade to Angular10.

WARNING in ../node_modules/angularx-qrcode/fesm2015/angularx-qrcode.js depends on 'qrcode'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies

Any chance for this to be fixed?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
foramkumar-parekhcommented, Apr 28, 2021

We get these warnings on build after an upgrade to Angular10.

WARNING in ../node_modules/angularx-qrcode/fesm2015/angularx-qrcode.js depends on 'qrcode'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies

Any chance for this to be fixed?

Can we have a fix for this, so we do not have to add it into allowedCommonJsDependencies?

1reaction
sovushka-utromcommented, Mar 12, 2021

Also get this warning for Angular 10:

'qrcode' is not a known element:
1. If 'qrcode' is an Angular component, then verify that it is part of this module.
2. To allow any element add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.ng
Can't bind to 'qrdata' since it isn't a known property of 'qrcode'.ng
Read more comments on GitHub >

github_iconTop Results From Across the Web

Building Angular 10 app shows incomplete "Warning ... - GitHub
Whenever I tried to build my app, there are warning in relevance to "Fix CommonJS or AMD dependencies can cause optimization bailouts" and ......
Read more >
Building and serving Angular apps
This page discusses build-specific configuration options for Angular projects. ... The Angular CLI outputs warnings if it detects that your browser ...
Read more >
Angular 10 build showing empty warning - Stack Overflow
1 to v10 and when building app I'm getting two empty rows with WARNING in Is this the normal behaviour? Generating ES5 bundles...
Read more >
Compilations warnings during ng serve / ng build in Angular ...
Warning : Entry point 'devextreme-angular/ui/switch' contains deep imports into '/var/www/devextreme-test/node_modules/devextreme/ui/switch'.
Read more >
Developers - Build warning with Angular 10 - - Bountysource
Getting this warning when building after upgrading to Angular 10: ... see: https://angular.io/guide/build#configuring-commonjs-dependencies.
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