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

前端 未结 5 1620
一向
一向 2020-12-15 02:36

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

rxjs\\BehaviorSubject.js depends on rxjs-compat/Beh         


        
5条回答
  •  不知归路
    2020-12-15 03:16

    For RXJS library you can do following changes.

    For imports such as 'rxjs/internal/' and 'rxjs/index', replace it with just 'rxjs'.

    For imports such as 'rxjs/internal/operators', replace it with 'rxjs/operators', which is mentioned in @Janardhan Burle's answer.

提交回复
热议问题