在尝试使用 typescript 和 npm 运行我的 Angular2 应用程序时,我收到标题错误。正如在类似主题中所说,我尝试了“import 'reflect-metadata';”但它没有用。
这是我的 package.json 文件中的依赖项:
"reflect-metadata": "0.1.3",
在此先感谢您的时间
PS:这发生在我将应用程序从 rc4 升级到 rc5 之后
编辑 1
有关错误的更多详细信息:
checkReflect @ vendor.js:40700
(anonymous function) @ vendor.js:40702
(anonymous function) @ vendor.js:40791
initModule @ vendor.js:43
require @ vendor.js:60
expanded @ vendor.js:34
(anonymous function) @ vendor.js:148
(anonymous function) @ vendor.js:30176
(anonymous function) @ vendor.js:30215
initModule @ vendor.js:43
require @ vendor.js:60
expanded @ vendor.js:34
(anonymous function) @ vendor.js:148
(anonymous function) @ vendor.js:30634
(anonymous function) @ vendor.js:30652
initModule @ vendor.js:43
require @ vendor.js:60
expanded @ vendor.js:34
(anonymous function) @ vendor.js:148
(anonymous function) @ vendor.js:37326
(anonymous function) @ vendor.js:37842
initModule @ vendor.js:43
require @ vendor.js:60
expanded @ vendor.js:34
(anonymous function) @ vendor.js:148
(anonymous function) @ vendor.js:36288
(anonymous function) @ vendor.js:37305
initModule @ vendor.js:43
require @ vendor.js:60
expanded @ vendor.js:34
(anonymous function) @ vendor.js:148
(anonymous function) @ vendor.js:26058
(anonymous function) @ vendor.js:26118
initModule @ vendor.js:43
require @ vendor.js:60
expanded @ vendor.js:34
(anonymous function) @ vendor.js:148
(anonymous function) @ vendor.js:9935
(anonymous function) @ vendor.js:10294
initModule @ vendor.js:43
require @ vendor.js:60
expanded @ vendor.js:34
(anonymous function) @ vendor.js:148
(anonymous function) @ vendor.js:12761
(anonymous function) @ vendor.js:12871
initModule @ vendor.js:43
require @ vendor.js:60
expanded @ vendor.js:34
(anonymous function) @ vendor.js:148
(anonymous function) @ vendor.js:12255
(anonymous function) @ vendor.js:12657
initModule @ vendor.js:43
require @ vendor.js:60
expanded @ vendor.js:34
(anonymous function) @ vendor.js:148
(anonymous function) @ vendor.js:12907
(anonymous function) @ vendor.js:12935
initModule @ vendor.js:43
require @ vendor.js:60
expanded @ vendor.js:34
(anonymous function) @ vendor.js:148
(anonymous function) @ vendor.js:12885
(anonymous function) @ vendor.js:12892
initModule @ vendor.js:43
require @ vendor.js:60
expanded @ vendor.js:34
(anonymous function) @ vendor.js:148
(anonymous function) @ vendor.js:6709
(anonymous function) @ vendor.js:6746
initModule @ vendor.js:43
require @ vendor.js:60
expanded @ vendor.js:34
(anonymous function) @ vendor.js:148
(anonymous function) @ vendor.js:49327
(anonymous function) @ vendor.js:49528
initModule @ vendor.js:43
require @ vendor.js:60
expanded @ vendor.js:34
(anonymous function) @ main.js:404
initModule @ vendor.js:43
require @ vendor.js:60
(anonymous function) @ (index):38