Angular 10 Upgrade - Fix CommonJS or AMD dependencies can cause optimization bailouts

Discussão em 'Angular' iniciado por Renjith P N, Outubro 18, 2024.

  1. Renjith P N

    Renjith P N Guest

    I am trying to upgrade my Angular 9 app to Angular 10 version, but getting below warning after the upgrade

    WARNING in calendar.reducer.ts depends on lodash/keys. CommonJS or AMD dependencies can cause optimization bailouts.


    I have added below line to my angular.json file but issue is not resolved

    "allowedCommonJsDependencies": ["lodash"]


    How can I fix above issue.

    Continue reading...

Compartilhe esta Página