找回密码
 立即注册

QQ登录

只需一步,快速开始

CSCWijmo

金牌服务用户

47

主题

133

帖子

420

积分

金牌服务用户

积分
420

微信认证勋章

CSCWijmo
金牌服务用户   /  发表于:2018-4-20 09:07  /   查看:3391  /  回复:2
  1. [21:08:15] Using gulpfile D:\gz\csc\code\LF42_CSC_Web_Control\gulpfile.js
  2. [21:08:15] Starting 'prepublish'...
  3. [21:08:15] Starting 'clean:dist'...
  4. [21:08:15] Finished 'clean:dist' after 2.66 ms
  5. [21:08:15] Starting 'copy:exports'...
  6. [21:08:15] Finished 'copy:exports' after 216 ms
  7. [21:08:15] Starting 'ng2:inline'...
  8. [21:08:15] Finished 'ng2:inline' after 275 ms
  9. [21:08:15] Starting 'ng2:aot'...
  10. { Error: Command failed: D:\gz\csc\code\LF42_CSC_Web_Control\node_modules\.bin\ngc.cmd -p ./dist/tsconfig-es2015.json
  11. : Error: D:/gz/csc/code/LF42_CSC_Web_Control/node_modules/wijmo/wijmo.angular2.directiveBase.ts:194:1: Error encountered in metadata generated for exported
  12. symbol 'WjDirectiveBehavior':
  13. D:/gz/csc/code/LF42_CSC_Web_Control/node_modules/wijmo/wijmo.angular2.directiveBase.ts:210:12: Metadata collected contains an error that will be reported
  14. at runtime: Only initialized variables and constants can be referenced because the value of this variable is needed by the template compiler.
  15.   {"__symbolic":"error","message":"Variable not initialized","line":209,"character":11}
  16.     at D:\gz\csc\code\LF42_CSC_Web_Control\node_modules\@angular\compiler-cli\src\metadata\collector.js:664:27
  17.     at Array.forEach (<anonymous>)
  18.     at validateMetadata (D:\gz\csc\code\LF42_CSC_Web_Control\node_modules\@angular\compiler-cli\src\metadata\collector.js:652:42)
  19.     at MetadataCollector.getMetadata (D:\gz\csc\code\LF42_CSC_Web_Control\node_modules\@angular\compiler-cli\src\metadata\collector.js:507:17)
  20.     at LowerMetadataCache.getMetadataAndRequests (D:\gz\csc\code\LF42_CSC_Web_Control\node_modules\@angular\compiler-cli\src\transformers\lower_expressions
  21. .js:264:39)
  22.     at LowerMetadataCache.ensureMetadataAndRequests (D:\gz\csc\code\LF42_CSC_Web_Control\node_modules\@angular\compiler-cli\src\transformers\lower_expressi
  23. ons.js:209:27)
  24.     at LowerMetadataCache.getMetadata (D:\gz\csc\code\LF42_CSC_Web_Control\node_modules\@angular\compiler-cli\src\transformers\lower_expressions.js:201:21)

  25.     at Object.getSourceFileMetadata (D:\gz\csc\code\LF42_CSC_Web_Control\node_modules\@angular\compiler-cli\src\transformers\compiler_host.js:101:52)
  26.     at Object.readMetadata (D:\gz\csc\code\LF42_CSC_Web_Control\node_modules\@angular\compiler-cli\src\transformers\metadata_reader.js:44:33)
  27.     at TsCompilerAotCompilerTypeCheckHostAdapter.getMetadataFor (D:\gz\csc\code\LF42_CSC_Web_Control\node_modules\@angular\compiler-cli\src\transformers\co
  28. mpiler_host.js:425:34)


  29.     at ChildProcess.exithandler (child_process.js:275:12)
  30.     at emitTwo (events.js:126:13)
  31.     at ChildProcess.emit (events.js:214:7)
  32.     at maybeClose (internal/child_process.js:925:16)
  33.     at Socket.stream.socket.on (internal/child_process.js:346:11)
  34.     at emitOne (events.js:116:13)
  35.     at Socket.emit (events.js:211:7)
  36.     at Pipe._handle.close [as _onclose] (net.js:567:12)
  37.   killed: false,
  38.   code: 2,
  39.   signal: null,
  40.   cmd: 'D:\\gz\\csc\\code\\LF42_CSC_Web_Control\\node_modules\\.bin\\ngc.cmd -p ./dist/tsconfig-es2015.json' }
  41. [21:08:19] 'ng2:aot' errored after 3.61 s
  42. [21:08:19] Error: Command failed: D:\gz\csc\code\LF42_CSC_Web_Control\node_modules\.bin\ngc.cmd -p ./dist/tsconfig-es2015.json
  43. : Error: D:/gz/csc/code/LF42_CSC_Web_Control/node_modules/wijmo/wijmo.angular2.directiveBase.ts:194:1: Error encountered in metadata generated for exported
  44. symbol 'WjDirectiveBehavior':
  45. D:/gz/csc/code/LF42_CSC_Web_Control/node_modules/wijmo/wijmo.angular2.directiveBase.ts:210:12: Metadata collected contains an error that will be reported
  46. at runtime: Only initialized variables and constants can be referenced because the value of this variable is needed by the template compiler.
  47.   {"__symbolic":"error","message":"Variable not initialized","line":209,"character":11}
  48.     at D:\gz\csc\code\LF42_CSC_Web_Control\node_modules\@angular\compiler-cli\src\metadata\collector.js:664:27
  49.     at Array.forEach (<anonymous>)
  50.     at validateMetadata (D:\gz\csc\code\LF42_CSC_Web_Control\node_modules\@angular\compiler-cli\src\metadata\collector.js:652:42)
  51.     at MetadataCollector.getMetadata (D:\gz\csc\code\LF42_CSC_Web_Control\node_modules\@angular\compiler-cli\src\metadata\collector.js:507:17)
  52.     at LowerMetadataCache.getMetadataAndRequests (D:\gz\csc\code\LF42_CSC_Web_Control\node_modules\@angular\compiler-cli\src\transformers\lower_expressions
  53. .js:264:39)
  54.     at LowerMetadataCache.ensureMetadataAndRequests (D:\gz\csc\code\LF42_CSC_Web_Control\node_modules\@angular\compiler-cli\src\transformers\lower_expressi
  55. ons.js:209:27)
  56.     at LowerMetadataCache.getMetadata (D:\gz\csc\code\LF42_CSC_Web_Control\node_modules\@angular\compiler-cli\src\transformers\lower_expressions.js:201:21)

  57.     at Object.getSourceFileMetadata (D:\gz\csc\code\LF42_CSC_Web_Control\node_modules\@angular\compiler-cli\src\transformers\compiler_host.js:101:52)
  58.     at Object.readMetadata (D:\gz\csc\code\LF42_CSC_Web_Control\node_modules\@angular\compiler-cli\src\transformers\metadata_reader.js:44:33)
  59.     at TsCompilerAotCompilerTypeCheckHostAdapter.getMetadataFor (D:\gz\csc\code\LF42_CSC_Web_Control\node_modules\@angular\compiler-cli\src\transformers\co
  60. mpiler_host.js:425:34)


  61.     at ChildProcess.exithandler (child_process.js:275:12)
  62.     at emitTwo (events.js:126:13)
  63.     at ChildProcess.emit (events.js:214:7)
  64.     at maybeClose (internal/child_process.js:925:16)
  65.     at Socket.stream.socket.on (internal/child_process.js:346:11)
  66.     at emitOne (events.js:116:13)
  67.     at Socket.emit (events.js:211:7)
  68.     at Pipe._handle.close [as _onclose] (net.js:567:12)
  69. [21:08:19] 'prepublish' errored after 4.12 s
  70. [21:08:19] Error in plugin 'run-sequence(ng2:aot)'
  71. Message:
  72.     Command failed: D:\gz\csc\code\LF42_CSC_Web_Control\node_modules\.bin\ngc.cmd -p ./dist/tsconfig-es2015.json
  73. : Error: D:/gz/csc/code/LF42_CSC_Web_Control/node_modules/wijmo/wijmo.angular2.directiveBase.ts:194:1: Error encountered in metadata generated for exported
  74. symbol 'WjDirectiveBehavior':
  75. D:/gz/csc/code/LF42_CSC_Web_Control/node_modules/wijmo/wijmo.angular2.directiveBase.ts:210:12: Metadata collected contains an error that will be reported
  76. at runtime: Only initialized variables and constants can be referenced because the value of this variable is needed by the template compiler.
  77.   {"__symbolic":"error","message":"Variable not initialized","line":209,"character":11}
  78.     at D:\gz\csc\code\LF42_CSC_Web_Control\node_modules\@angular\compiler-cli\src\metadata\collector.js:664:27
  79.     at Array.forEach (<anonymous>)
  80.     at validateMetadata (D:\gz\csc\code\LF42_CSC_Web_Control\node_modules\@angular\compiler-cli\src\metadata\collector.js:652:42)
  81.     at MetadataCollector.getMetadata (D:\gz\csc\code\LF42_CSC_Web_Control\node_modules\@angular\compiler-cli\src\metadata\collector.js:507:17)
  82.     at LowerMetadataCache.getMetadataAndRequests (D:\gz\csc\code\LF42_CSC_Web_Control\node_modules\@angular\compiler-cli\src\transformers\lower_expressions
  83. .js:264:39)
  84.     at LowerMetadataCache.ensureMetadataAndRequests (D:\gz\csc\code\LF42_CSC_Web_Control\node_modules\@angular\compiler-cli\src\transformers\lower_expressi
  85. ons.js:209:27)
  86.     at LowerMetadataCache.getMetadata (D:\gz\csc\code\LF42_CSC_Web_Control\node_modules\@angular\compiler-cli\src\transformers\lower_expressions.js:201:21)

  87.     at Object.getSourceFileMetadata (D:\gz\csc\code\LF42_CSC_Web_Control\node_modules\@angular\compiler-cli\src\transformers\compiler_host.js:101:52)
  88.     at Object.readMetadata (D:\gz\csc\code\LF42_CSC_Web_Control\node_modules\@angular\compiler-cli\src\transformers\metadata_reader.js:44:33)
  89.     at TsCompilerAotCompilerTypeCheckHostAdapter.getMetadataFor (D:\gz\csc\code\LF42_CSC_Web_Control\node_modules\@angular\compiler-cli\src\transformers\co
  90. mpiler_host.js:425:34)


  91. Details:
  92.     killed: false
  93.     code: 2
  94.     signal: null
  95.     cmd: D:\gz\csc\code\LF42_CSC_Web_Control\node_modules\.bin\ngc.cmd -p ./dist/tsconfig-es2015.json
  96. Stack:
  97. Error: Command failed: D:\gz\csc\code\LF42_CSC_Web_Control\node_modules\.bin\ngc.cmd -p ./dist/tsconfig-es2015.json
  98. : Error: D:/gz/csc/code/LF42_CSC_Web_Control/node_modules/wijmo/wijmo.angular2.directiveBase.ts:194:1: Error encountered in metadata generated for exported
  99. symbol 'WjDirectiveBehavior':
  100. D:/gz/csc/code/LF42_CSC_Web_Control/node_modules/wijmo/wijmo.angular2.directiveBase.ts:210:12: Metadata collected contains an error that will be reported
  101. at runtime: Only initialized variables and constants can be referenced because the value of this variable is needed by the template compiler.
  102.   {"__symbolic":"error","message":"Variable not initialized","line":209,"character":11}
  103.     at D:\gz\csc\code\LF42_CSC_Web_Control\node_modules\@angular\compiler-cli\src\metadata\collector.js:664:27
  104.     at Array.forEach (<anonymous>)
  105.     at validateMetadata (D:\gz\csc\code\LF42_CSC_Web_Control\node_modules\@angular\compiler-cli\src\metadata\collector.js:652:42)
  106.     at MetadataCollector.getMetadata (D:\gz\csc\code\LF42_CSC_Web_Control\node_modules\@angular\compiler-cli\src\metadata\collector.js:507:17)
  107.     at LowerMetadataCache.getMetadataAndRequests (D:\gz\csc\code\LF42_CSC_Web_Control\node_modules\@angular\compiler-cli\src\transformers\lower_expressions
  108. .js:264:39)
  109.     at LowerMetadataCache.ensureMetadataAndRequests (D:\gz\csc\code\LF42_CSC_Web_Control\node_modules\@angular\compiler-cli\src\transformers\lower_expressi
  110. ons.js:209:27)
  111.     at LowerMetadataCache.getMetadata (D:\gz\csc\code\LF42_CSC_Web_Control\node_modules\@angular\compiler-cli\src\transformers\lower_expressions.js:201:21)

  112.     at Object.getSourceFileMetadata (D:\gz\csc\code\LF42_CSC_Web_Control\node_modules\@angular\compiler-cli\src\transformers\compiler_host.js:101:52)
  113.     at Object.readMetadata (D:\gz\csc\code\LF42_CSC_Web_Control\node_modules\@angular\compiler-cli\src\transformers\metadata_reader.js:44:33)
  114.     at TsCompilerAotCompilerTypeCheckHostAdapter.getMetadataFor (D:\gz\csc\code\LF42_CSC_Web_Control\node_modules\@angular\compiler-cli\src\transformers\co
  115. mpiler_host.js:425:34)


  116.     at ChildProcess.exithandler (child_process.js:275:12)
  117.     at emitTwo (events.js:126:13)
  118.     at ChildProcess.emit (events.js:214:7)
  119.     at maybeClose (internal/child_process.js:925:16)
  120.     at Socket.stream.socket.on (internal/child_process.js:346:11)
  121.     at emitOne (events.js:116:13)
  122.     at Socket.emit (events.js:211:7)
  123.     at Pipe._handle.close [as _onclose] (net.js:567:12)
  124. npm ERR! code ELIFECYCLE
  125. npm ERR! errno 1
  126. npm ERR! c-control@0.1.15 npm:publish: `gulp prepublish`
  127. npm ERR! Exit status 1
  128. npm ERR!
  129. npm ERR! Failed at the c-control@0.1.15 npm:publish script.
  130. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
复制代码



使用的是 Angular 5.2.9 将 wijmo-commonjs-src 拷贝到 npm_modules 里面,使用 aot 编译时,出现上面的错误

2 个回复

倒序浏览
JeffryLI
葡萄城公司职员   /  发表于:2018-4-20 09:53:10
沙发
您好,我们先调查下原因,如有结果,立即通知您。
请点击评分,对我5分评价,谢谢!

葡萄城控件服务团队
官方网站: https://www.grapecity.com.cn/developer
回复 使用道具 举报
JeffryLI
葡萄城公司职员   /  发表于:2018-5-4 10:03:39
板凳
您好, *.metadata.json files for wijmo.angular2.* modules are included in npm package, 所以您可以使用aot 来编译angular for wijmo 模块。希望能帮到您。
请点击评分,对我5分评价,谢谢!

葡萄城控件服务团队
官方网站: https://www.grapecity.com.cn/developer
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部