将 angular 从 19.0.4 升级到 19.1.4,并升级了所有的 npm 包,build 时报错
ncu --upgrade
npm i --legacy-peer-deps
ng build
报错信息如下
[ERROR] TS2688: Cannot find type definition file for 'faker'.
The file is in the program because:
Entry point for implicit type library 'faker' [plugin angular-compiler]
删除 @types/faker
包解决了
npm uninstall @types/faker --legacy-peer-deps