- [21:08:15] Using gulpfile D:\gz\csc\code\LF42_CSC_Web_Control\gulpfile.js
- [21:08:15] Starting 'prepublish'...
- [21:08:15] Starting 'clean:dist'...
- [21:08:15] Finished 'clean:dist' after 2.66 ms
- [21:08:15] Starting 'copy:exports'...
- [21:08:15] Finished 'copy:exports' after 216 ms
- [21:08:15] Starting 'ng2:inline'...
- [21:08:15] Finished 'ng2:inline' after 275 ms
- [21:08:15] Starting 'ng2:aot'...
- { Error: Command failed: D:\gz\csc\code\LF42_CSC_Web_Control\node_modules\.bin\ngc.cmd -p ./dist/tsconfig-es2015.json
- : 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
- symbol 'WjDirectiveBehavior':
- 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
- at runtime: Only initialized variables and constants can be referenced because the value of this variable is needed by the template compiler.
- {"__symbolic":"error","message":"Variable not initialized","line":209,"character":11}
- at D:\gz\csc\code\LF42_CSC_Web_Control\node_modules\@angular\compiler-cli\src\metadata\collector.js:664:27
- at Array.forEach (<anonymous>)
- at validateMetadata (D:\gz\csc\code\LF42_CSC_Web_Control\node_modules\@angular\compiler-cli\src\metadata\collector.js:652:42)
- at MetadataCollector.getMetadata (D:\gz\csc\code\LF42_CSC_Web_Control\node_modules\@angular\compiler-cli\src\metadata\collector.js:507:17)
- at LowerMetadataCache.getMetadataAndRequests (D:\gz\csc\code\LF42_CSC_Web_Control\node_modules\@angular\compiler-cli\src\transformers\lower_expressions
- .js:264:39)
- at LowerMetadataCache.ensureMetadataAndRequests (D:\gz\csc\code\LF42_CSC_Web_Control\node_modules\@angular\compiler-cli\src\transformers\lower_expressi
- ons.js:209:27)
- at LowerMetadataCache.getMetadata (D:\gz\csc\code\LF42_CSC_Web_Control\node_modules\@angular\compiler-cli\src\transformers\lower_expressions.js:201:21)
- at Object.getSourceFileMetadata (D:\gz\csc\code\LF42_CSC_Web_Control\node_modules\@angular\compiler-cli\src\transformers\compiler_host.js:101:52)
- at Object.readMetadata (D:\gz\csc\code\LF42_CSC_Web_Control\node_modules\@angular\compiler-cli\src\transformers\metadata_reader.js:44:33)
- at TsCompilerAotCompilerTypeCheckHostAdapter.getMetadataFor (D:\gz\csc\code\LF42_CSC_Web_Control\node_modules\@angular\compiler-cli\src\transformers\co
- mpiler_host.js:425:34)
- at ChildProcess.exithandler (child_process.js:275:12)
- at emitTwo (events.js:126:13)
- at ChildProcess.emit (events.js:214:7)
- at maybeClose (internal/child_process.js:925:16)
- at Socket.stream.socket.on (internal/child_process.js:346:11)
- at emitOne (events.js:116:13)
- at Socket.emit (events.js:211:7)
- at Pipe._handle.close [as _onclose] (net.js:567:12)
- killed: false,
- code: 2,
- signal: null,
- cmd: 'D:\\gz\\csc\\code\\LF42_CSC_Web_Control\\node_modules\\.bin\\ngc.cmd -p ./dist/tsconfig-es2015.json' }
- [21:08:19] 'ng2:aot' errored after 3.61 s
- [21:08:19] Error: Command failed: D:\gz\csc\code\LF42_CSC_Web_Control\node_modules\.bin\ngc.cmd -p ./dist/tsconfig-es2015.json
- : 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
- symbol 'WjDirectiveBehavior':
- 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
- at runtime: Only initialized variables and constants can be referenced because the value of this variable is needed by the template compiler.
- {"__symbolic":"error","message":"Variable not initialized","line":209,"character":11}
- at D:\gz\csc\code\LF42_CSC_Web_Control\node_modules\@angular\compiler-cli\src\metadata\collector.js:664:27
- at Array.forEach (<anonymous>)
- at validateMetadata (D:\gz\csc\code\LF42_CSC_Web_Control\node_modules\@angular\compiler-cli\src\metadata\collector.js:652:42)
- at MetadataCollector.getMetadata (D:\gz\csc\code\LF42_CSC_Web_Control\node_modules\@angular\compiler-cli\src\metadata\collector.js:507:17)
- at LowerMetadataCache.getMetadataAndRequests (D:\gz\csc\code\LF42_CSC_Web_Control\node_modules\@angular\compiler-cli\src\transformers\lower_expressions
- .js:264:39)
- at LowerMetadataCache.ensureMetadataAndRequests (D:\gz\csc\code\LF42_CSC_Web_Control\node_modules\@angular\compiler-cli\src\transformers\lower_expressi
- ons.js:209:27)
- at LowerMetadataCache.getMetadata (D:\gz\csc\code\LF42_CSC_Web_Control\node_modules\@angular\compiler-cli\src\transformers\lower_expressions.js:201:21)
- at Object.getSourceFileMetadata (D:\gz\csc\code\LF42_CSC_Web_Control\node_modules\@angular\compiler-cli\src\transformers\compiler_host.js:101:52)
- at Object.readMetadata (D:\gz\csc\code\LF42_CSC_Web_Control\node_modules\@angular\compiler-cli\src\transformers\metadata_reader.js:44:33)
- at TsCompilerAotCompilerTypeCheckHostAdapter.getMetadataFor (D:\gz\csc\code\LF42_CSC_Web_Control\node_modules\@angular\compiler-cli\src\transformers\co
- mpiler_host.js:425:34)
- at ChildProcess.exithandler (child_process.js:275:12)
- at emitTwo (events.js:126:13)
- at ChildProcess.emit (events.js:214:7)
- at maybeClose (internal/child_process.js:925:16)
- at Socket.stream.socket.on (internal/child_process.js:346:11)
- at emitOne (events.js:116:13)
- at Socket.emit (events.js:211:7)
- at Pipe._handle.close [as _onclose] (net.js:567:12)
- [21:08:19] 'prepublish' errored after 4.12 s
- [21:08:19] Error in plugin 'run-sequence(ng2:aot)'
- Message:
- Command failed: D:\gz\csc\code\LF42_CSC_Web_Control\node_modules\.bin\ngc.cmd -p ./dist/tsconfig-es2015.json
- : 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
- symbol 'WjDirectiveBehavior':
- 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
- at runtime: Only initialized variables and constants can be referenced because the value of this variable is needed by the template compiler.
- {"__symbolic":"error","message":"Variable not initialized","line":209,"character":11}
- at D:\gz\csc\code\LF42_CSC_Web_Control\node_modules\@angular\compiler-cli\src\metadata\collector.js:664:27
- at Array.forEach (<anonymous>)
- at validateMetadata (D:\gz\csc\code\LF42_CSC_Web_Control\node_modules\@angular\compiler-cli\src\metadata\collector.js:652:42)
- at MetadataCollector.getMetadata (D:\gz\csc\code\LF42_CSC_Web_Control\node_modules\@angular\compiler-cli\src\metadata\collector.js:507:17)
- at LowerMetadataCache.getMetadataAndRequests (D:\gz\csc\code\LF42_CSC_Web_Control\node_modules\@angular\compiler-cli\src\transformers\lower_expressions
- .js:264:39)
- at LowerMetadataCache.ensureMetadataAndRequests (D:\gz\csc\code\LF42_CSC_Web_Control\node_modules\@angular\compiler-cli\src\transformers\lower_expressi
- ons.js:209:27)
- at LowerMetadataCache.getMetadata (D:\gz\csc\code\LF42_CSC_Web_Control\node_modules\@angular\compiler-cli\src\transformers\lower_expressions.js:201:21)
- at Object.getSourceFileMetadata (D:\gz\csc\code\LF42_CSC_Web_Control\node_modules\@angular\compiler-cli\src\transformers\compiler_host.js:101:52)
- at Object.readMetadata (D:\gz\csc\code\LF42_CSC_Web_Control\node_modules\@angular\compiler-cli\src\transformers\metadata_reader.js:44:33)
- at TsCompilerAotCompilerTypeCheckHostAdapter.getMetadataFor (D:\gz\csc\code\LF42_CSC_Web_Control\node_modules\@angular\compiler-cli\src\transformers\co
- mpiler_host.js:425:34)
- Details:
- killed: false
- code: 2
- signal: null
- cmd: D:\gz\csc\code\LF42_CSC_Web_Control\node_modules\.bin\ngc.cmd -p ./dist/tsconfig-es2015.json
- Stack:
- Error: Command failed: D:\gz\csc\code\LF42_CSC_Web_Control\node_modules\.bin\ngc.cmd -p ./dist/tsconfig-es2015.json
- : 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
- symbol 'WjDirectiveBehavior':
- 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
- at runtime: Only initialized variables and constants can be referenced because the value of this variable is needed by the template compiler.
- {"__symbolic":"error","message":"Variable not initialized","line":209,"character":11}
- at D:\gz\csc\code\LF42_CSC_Web_Control\node_modules\@angular\compiler-cli\src\metadata\collector.js:664:27
- at Array.forEach (<anonymous>)
- at validateMetadata (D:\gz\csc\code\LF42_CSC_Web_Control\node_modules\@angular\compiler-cli\src\metadata\collector.js:652:42)
- at MetadataCollector.getMetadata (D:\gz\csc\code\LF42_CSC_Web_Control\node_modules\@angular\compiler-cli\src\metadata\collector.js:507:17)
- at LowerMetadataCache.getMetadataAndRequests (D:\gz\csc\code\LF42_CSC_Web_Control\node_modules\@angular\compiler-cli\src\transformers\lower_expressions
- .js:264:39)
- at LowerMetadataCache.ensureMetadataAndRequests (D:\gz\csc\code\LF42_CSC_Web_Control\node_modules\@angular\compiler-cli\src\transformers\lower_expressi
- ons.js:209:27)
- at LowerMetadataCache.getMetadata (D:\gz\csc\code\LF42_CSC_Web_Control\node_modules\@angular\compiler-cli\src\transformers\lower_expressions.js:201:21)
- at Object.getSourceFileMetadata (D:\gz\csc\code\LF42_CSC_Web_Control\node_modules\@angular\compiler-cli\src\transformers\compiler_host.js:101:52)
- at Object.readMetadata (D:\gz\csc\code\LF42_CSC_Web_Control\node_modules\@angular\compiler-cli\src\transformers\metadata_reader.js:44:33)
- at TsCompilerAotCompilerTypeCheckHostAdapter.getMetadataFor (D:\gz\csc\code\LF42_CSC_Web_Control\node_modules\@angular\compiler-cli\src\transformers\co
- mpiler_host.js:425:34)
- at ChildProcess.exithandler (child_process.js:275:12)
- at emitTwo (events.js:126:13)
- at ChildProcess.emit (events.js:214:7)
- at maybeClose (internal/child_process.js:925:16)
- at Socket.stream.socket.on (internal/child_process.js:346:11)
- at emitOne (events.js:116:13)
- at Socket.emit (events.js:211:7)
- at Pipe._handle.close [as _onclose] (net.js:567:12)
- npm ERR! code ELIFECYCLE
- npm ERR! errno 1
- npm ERR! c-control@0.1.15 npm:publish: `gulp prepublish`
- npm ERR! Exit status 1
- npm ERR!
- npm ERR! Failed at the c-control@0.1.15 npm:publish script.
- 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 编译时,出现上面的错误
|
|