> npm install primeng --save
> npm install primeicons --save
要import到module.ts時卻出現以下錯誤,發現是安裝了最新版本的primeNg,跟原本本地Angular meterial版本對不上
Error: node_modules/primeng/api/shared.d.ts:6:18 - error TS2707: Generic type 'ɵɵComponentDeclaration' requires between 7 and 8 type arguments.
6 static ɵcmp: i0.ɵɵComponentDeclaration<Header, "p-header", never, {}, {}, never, ["*"], false, never>;
於是兩個解決辦法,升版Angular或者降版PrimeNg