Skip to content

warnings in Angular 10 upgrade - CommonJS or AMD dependencies can cause optimization bailouts #97

@apranzetti

Description

@apranzetti

Describe the bug
Upgrading to the latest version of angular and using '@markpieszak/ng-application-insights' will cause console warnings

To Reproduce
Steps to reproduce the behavior:

Install version 10 of Angular CLI
Follow instructions from here https://docs.amplify.aws/start/getting-started/installation/q/integration/angular
build the app

Temporarily solution
Add to angular.json : "allowedCommonJsDependencies": [ "@markpieszak/ng-application-insights" ]
to avoid console error.

Expected behavior
NO warnings.

Console snippet

WARNING in *** depends on '@markpieszak/ng-application-insights'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions