Rollup Angular2类错误(InjectMetadata)

时间:2016-08-03 16:17:47

标签: angular typescript rollupjs

我使用标准的tsc(v1.8.10)编译和Rollup.js(v0.34.3)捆绑一个Angular 2应用程序但是在执行时会出现以下错误:

Uncaught TypeError: Class constructor InjectMetadata cannot be invoked without 'new'(…)

堆栈跟踪的其余部分似乎通过依赖注入器:

decoratorInvocations.map.decoratorInvocation    @   app.js:4012
convertTsickleDecoratorIntoMetadata @   app.js:4007
ctorParameters.map  @   app.js:3911
parameters  @   app.js:3911
parameters  @   app.js:4092
_dependenciesFor    @   app.js:4531
resolveReflectiveFactory    @   app.js:4430
resolveReflectiveProvider   @   app.js:4453
resolveReflectiveProviders  @   app.js:4460
resolve @   app.js:4930
resolveAndCreate    @   app.js:4959
bootstrap   @   app.js:31991
(anonymous function)    @   app.js:32032 <= call to bootstrap
(anonymous function)    @   app.js:32036 <= iife invocation

我特别擅长Angular2。

0 个答案:

没有答案