【发布时间】:2019-07-01 02:38:02
【问题描述】:
我将代码从 Angular 4 转换为 Angular 7 并成功编译。 但是当我尝试运行它时,在 broser 的控制台中它给出了以下错误。
Uncaught TypeError: core_1.style is not a function
at Object.<anonymous> (ng2-dropdown.bundle.js:435)
at __webpack_require__ (ng2-dropdown.bundle.js:30)
at Object.<anonymous> (ng2-dropdown.bundle.js:121)
at __webpack_require__ (ng2-dropdown.bundle.js:30)
at Object.<anonymous> (ng2-dropdown.bundle.js:65)
at __webpack_require__ (ng2-dropdown.bundle.js:30)
at ng2-dropdown.bundle.js:50
at ng2-dropdown.bundle.js:53
at webpackUniversalModuleDefinition (ng2-dropdown.bundle.js:3)
at Object../node_modules/ng2-tag-input/node_modules/ng2-material-dropdown/dist/ng2-dropdown.bundle.js (ng2-dropdown.bundle.js:10)
有人能指出我为什么会收到这个错误吗?我对 Angular 很陌生。提前谢谢你。
【问题讨论】:
标签: javascript angular typescript angular7