2

I am converting an existing angular application to library. For the same I did all the necessary changes including all the dependcies. Now while running ng build for library, I am facing error

Cannot find builder "@angular-devkit/build-angular:ng-packagr".

I believe the angular version 8 is not supporting ng-packagr version 4.7.1 ( I tried with multiple versions though).

Can anyone please help me to find the right version of ng-packagr ?

XouDo
  • 945
  • 10
  • 19
nisha
  • 23
  • 3
  • Have you added it as a dev dependency, i.e. npm install --save-dev @angular-devkit/build-angular? Or just running npm update – DanielG Dec 01 '21 at 14:06
  • yes I did but it didn't worked. @DanielG in library project do I need to add all the dependencies in package.json(under library project) in peer dependencies also ? – nisha Dec 01 '21 at 18:19

0 Answers0