How to get rid of the warning .ts file is part of the TypeScript compilation but it's unused

后端 未结 16 1146
天命终不由人
天命终不由人 2020-12-30 18:20

I Just updated angular to latest 9.0.0-next.4. I am not using routing but suddenly after updating I keep seeing this warning. How Do I remove this warning

16条回答
  •  梦谈多话
    2020-12-30 18:58

    after try out the before solutions proposals , it worked for me

    update in your package.json

    "@angular-devkit/build-angular": "~0.1000.3" 
    

    can you see here all versions.

    https://www.npmjs.com/package/@angular-devkit/build-angular?activeTab=versions

    check which version work with you current version from angular/core

    for angular 10 work with version 0.1000.3 of @angular-devkit/build-angular

提交回复
热议问题