【发布时间】:2016-09-28 14:20:51
【问题描述】:
我在使用 ng-xi18n 命令时遇到以下问题:
c:\Users\Documents\bptt_webclient>node_modules\.bin\ng-xi18n
Error: parameters received {"filePath":"c:/Users/Documents/bptt_webclient/node_modules/@angular/common/src/location/location.d.ts","name":"Location"} which is not a StaticSymbo
l
at StaticReflector.parameters (c:\Users\Documents\bptt_webclient\node_modules\@angular\compiler-cli\src\static_reflector.js:92:19)
at CompileMetadataResolver.getDependenciesMetadata (c:\Users\Documents\bptt_webclient\node_modules\@angular\compiler\bundles\compiler.umd.js:14317:56)
at CompileMetadataResolver.getTypeMetadata (c:\Users\Documents\bptt_webclient\node_modules\@angular\compiler\bundles\compiler.umd.js:14282:28)
at c:\Users\Documents\bptt_webclient\node_modules\@angular\compiler\bundles\compiler.umd.js:14425:43
at Array.forEach (native)
at CompileMetadataResolver.getProvidersMetadata (c:\Users\Documents\bptt_webclient\node_modules\@angular\compiler\bundles\compiler.umd.js:14405:21)
at c:\Users\Documents\bptt_webclient\node_modules\@angular\compiler\bundles\compiler.umd.js:14412:43
at Array.forEach (native)
at CompileMetadataResolver.getProvidersMetadata (c:\Users\Documents\bptt_webclient\node_modules\@angular\compiler\bundles\compiler.umd.js:14405:21)
at CompileMetadataResolver.getNgModuleMetadata (c:\Users\Documents\bptt_webclient\node_modules\@angular\compiler\bundles\compiler.umd.js:14164:60)
Extraction failed
有人知道如何解决这个问题吗?
节点版本:v6.6.0
角度:2.0.0
感谢您的时间和帮助:)
编辑:对我有用的是取消注释这些行,这会在 static.reflector.js 中引发错误。仍然有错误,而且还有一个新的.xlf 文件。只是一个临时解决方案。
【问题讨论】:
标签: angular internationalization translation