How to solve ng build library Angular?

415 Views Asked by At

Aftyer command ng build lib I got this error message:

Error: Cannot find module 'tsickle/src/tsickle'

I have tried to install npm i tsickle no effect.

"@angular/core": "^6.0.0"

Ts is:

  "typescript": "~2.7.2"

This node_modules\ng-packagr\lib\ngc\create-emit-callback.js module required the tsicckle

1

There are 1 best solutions below

3
pbachman On BEST ANSWER

you should install tsickle as dev dependency

npm i --save-dev tsickle