1.沒有在public_api.ts中導出npm
export * from './src/app/ngprime/components/tooltip/tooltip.module'; export * from './src/app/ngprime/components/tree/tree.module'; export * from './src/app/ngprime/components/upload/upload.module'; export * from './src/app/ngprime/components/table/table.module';
2.package.json中的字段json
"packagr": "ng-packagr -p ng-package.json",
3.package.json中依賴的處理api
Dependencies--->改成unpeerDependenciesapp
4.最後在dist 目錄運行npm packspa
5.最後就可在dist 目錄下出現*.tgz 文件code