Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warnings regarding optimization bailouts #49

Open
Tiliavir opened this issue Aug 22, 2022 · 0 comments
Open

Warnings regarding optimization bailouts #49

Tiliavir opened this issue Aug 22, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@Tiliavir
Copy link
Member

Tiliavir commented Aug 22, 2022

Brief description

Warnings about optimization bailouts at build and runtime.

Detailed description

Seeing following warnings after upgrade to ng14 during build and at runtime in the brower console:

Warning: [<projectRoot>]\node_modules\@baloise\web-app-utils\dist\index.esm.js depends on 'lodash.isarray'. CommonJS or AMD dependencies can cause optimization bailouts.  
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies

Warning: [<projectRoot>]\node_modules\@baloise\web-app-utils\dist\index.esm.js depends on 'lodash.isboolean'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies

Warning: [<projectRoot>]\node_modules\@baloise\web-app-utils\dist\index.esm.js depends on 'lodash.isdate'. CommonJS or AMD dependencies can cause optimization bailouts.   
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies

Warning: [<projectRoot>]\node_modules\@baloise\web-app-utils\dist\index.esm.js depends on 'lodash.isequal'. CommonJS or AMD dependencies can cause optimization bailouts.  
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies

Warning: [<projectRoot>]\node_modules\@baloise\web-app-utils\dist\index.esm.js depends on 'lodash.isnan'. CommonJS or AMD dependencies can cause optimization bailouts.    
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies

Warning: [<projectRoot>]\node_modules\@baloise\web-app-utils\dist\index.esm.js depends on 'lodash.isnil'. CommonJS or AMD dependencies can cause optimization bailouts.    
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies

Warning: [<projectRoot>]\node_modules\@baloise\web-app-utils\dist\index.esm.js depends on 'lodash.isobject'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies

Warning: [<projectRoot>]\node_modules\@baloise\web-app-utils\dist\index.esm.js depends on 'lodash.isstring'. CommonJS or AMD dependencies can cause optimization bailouts. 
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies

Warning: [<projectRoot>]\node_modules\@baloise\web-app-utils\dist\index.esm.js depends on 'lodash.padstart'. CommonJS or AMD dependencies can cause optimization bailouts. 
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies

Warning: [<projectRoot>]\node_modules\@baloise\web-app-validators\dist\index.esm.js depends on 'lodash.isnumber'. CommonJS or AMD dependencies can cause optimization bailo
uts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies

I was expecting to get rid of them by using something like the following in angular.json - unfortunately without success. Any hints how to treat those warnings?

    "application-name": {
       // ...
        "build": {
          "options": {
            "allowedCommonJsDependencies": [
              "lodash",
              "web-app-utils"
            ],
@Tiliavir Tiliavir added the bug Something isn't working label Aug 22, 2022
@Tiliavir Tiliavir reopened this Aug 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant