【发布时间】:2016-11-06 21:56:19
【问题描述】:
我已按照 Angular2 教程添加 webpack。我收到以下错误,例如:
[default] D:\...\node_modules\@angular\core\src\util\decorators.d.ts:11:4
Property 'extends' of type 'Type<any> | undefined' is not assignable to string index type 'Function | any[] | Type<any>'.[default] D:\...\node_modules\@angular\platform-browser\src\dom\dom_renderer.d.ts:25:21
似乎 webpack 试图编译我引用的整个 angular 东西,这似乎有点太多了。
据我了解,我们可以使用已经构建的 Angular js 文件,而不是每次都编译 Angular(以及我想的所有其他库)?这样做是否可能/合理?
【问题讨论】:
标签: angular typescript webpack