发布到npm的Angular 6 lib在其他项目中使用时出现错误

时间:2018-10-02 21:34:26

标签: angular ng-packagr

使用发布到NPM的angular 6库时出错。

Uncaught TypeError: Object(...) is not a function
    at eval (angular-collapse.js:17)
    at eval (angular-collapse.js:19)
    at Object.../../../../angular-collapse/fesm5/angular-collapse.js (vendor.bundle.js:7)
    at __webpack_require__ (inline.bundle.js:55)
    at eval (app.module.ts:64)
    at Object.../../../../../src/app/app.module.ts (main.bundle.js:36)
    at __webpack_require__ (inline.bundle.js:55)
    at eval (main.ts:4)
    at Object.../../../../../src/main.ts (main.bundle.js:821)
    at __webpack_require__ (inline.bundle.js:55)

其中angle-collapse(https://www.npmjs.com/package/angular-collapse)是使用angular-cli和angle 6生成的npm-lib

0 个答案:

没有答案