Creator 版本:win版 2.0.9、2.0.10(内测版)
-
目标平台: vivo小游戏
-
详细报错信息,包含调用堆栈:
creator 版本:2.0.9
问题:构建vivo包时报错
日志:
2019-04-23T08:55:59.370Z - normal: Building D:\svn\game\chess
2019-04-23T08:55:59.371Z - normal: Destination D:\svn\game\chess\build\qgame
2019-04-23T08:55:59.372Z - normal: Delete D:\svn\game\chess\build\qgame\subpackages//*,D:\svn\game\chess\build\qgame\res//,D:\svn\game\chess\build\qgame\src/**/
2019-04-23T08:56:03.119Z - normal: Start building assets
2019-04-23T08:56:03.119Z - normal: Start spawn build-worker
2019-04-23T08:56:03.799Z - normal: Finish spawn build-worker
2019-04-23T08:56:03.799Z - normal: Start init build-worker
2019-04-23T08:56:06.869Z - normal: Finish init build-worker
2019-04-23T08:56:06.869Z - normal: Start build-assets in worker
2019-04-23T08:56:08.212Z - normal: Finish build-assets in worker
2019-04-23T08:56:08.218Z - normal: Finish building assets
2019-04-23T08:56:08.361Z - normal: Start building plugin scripts
2019-04-23T08:56:08.366Z - normal: Generating main.js from C:\CocosCreator\resources\static\build-templates\shares\main.js
2019-04-23T08:56:08.941Z - normal: Cocos Service — The Cocos Analytics service is being uninstalled. . .
2019-04-23T08:56:08.943Z - normal: Cocos Service — The Cocos Analytics service uninstallation is complete!
2019-04-23T08:56:08.948Z - normal: Checking config file D:\svn\game\chess\build\qgame
2019-04-23T08:56:10.825Z - normal: Building game runtime to D:\svn\game\chess\build\qgame
2019-04-23T08:56:10.987Z - normal: 自定义npm路径不为空,npm路径将用配置自定义的npm路径: C:\Program Files\nodejs
2019-04-23T08:56:12.348Z - normal: 开始安装 小游戏依赖的npm包,请耐心等待…(需要网络)
2019-04-23T08:56:13.155Z - error: { Error: Invalid argument for event.reply(), first argument must be null or Error
at EventEmitter.k.on.n (C:\CocosCreator\resources\app.asar\editor-framework\lib\main\ipc.js:1:5022)
at emitMany (events.js:127:13)
at EventEmitter.emit (events.js:204:7)
at Object.i.reply (C:\CocosCreator\resources\app.asar\editor-framework\lib\main\ipc.js:1:2270)
at exec (C:\CocosCreator\resources\builtin\vivo-runtime\build-runtime.js:433:35)
at ChildProcess.exithandler (child_process.js:224:5)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:194:7)
at maybeClose (internal/child_process.js:899:16)
at Process.ChildProcess.handle.onexit (internal/childprocess.js:226:5)
at e._wrapError (C:\CocosCreator\resources\app.asar\editor-framework\lib\share\ipc.js:1:907)
at Object.i.reply (C:\CocosCreator\resources\app.asar\editor-framework\lib\main\ipc.js:1:2062)
at exec (C:\CocosCreator\resources\builtin\vivo-runtime\build-runtime.js:433:35)
at ChildProcess.exithandler (child_process.js:224:5)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:194:7)
at maybeClose (internal/child_process.js:899:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5) code: ‘EINVALIDARGS’, errno: undefined, syscall: undefined }
at then.e (C:\CocosCreator\resources\app.asar\editor\lib\builder\index.js:1:885)
at
at process._tickDomainCallback (internal/process/next_tick.js:135:7)
2019-04-23T08:56:13.155Z - error: Build Failed: Error: Invalid argument for event.reply(), first argument must be null or Error
at EventEmitter.k.on.n (C:\CocosCreator\resources\app.asar\editor-framework\lib\main\ipc.js:1:5022)
at emitMany (events.js:127:13)
at EventEmitter.emit (events.js:204:7)
at Object.i.reply (C:\CocosCreator\resources\app.asar\editor-framework\lib\main\ipc.js:1:2270)
at exec (C:\CocosCreator\resources\builtin\vivo-runtime\build-runtime.js:433:35)
at ChildProcess.exithandler (child_process.js:224:5)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:194:7)
at maybeClose (internal/child_process.js:899:16)
at Process.ChildProcess.handle.onexit (internal/childprocess.js:226:5)
at e._wrapError (C:\CocosCreator\resources\app.asar\editor-framework\lib\share\ipc.js:1:907)
at Object.i.reply (C:\CocosCreator\resources\app.asar\editor-framework\lib\main\ipc.js:1:2062)
at exec (C:\CocosCreator\resources\builtin\vivo-runtime\build-runtime.js:433:35)
at ChildProcess.exithandler (child_process.js:224:5)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:194:7)
at maybeClose (internal/child_process.js:899:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
at r.waterfall.r (C:\CocosCreator\resources\app.asar\editor\lib\builder\index.js:1:3393)
at C:\CocosCreator\resources\app.asar\node_modules\async\lib\async.js:52:16
at C:\CocosCreator\resources\app.asar\node_modules\async\lib\async.js:1209:30
at then.e (C:\CocosCreator\resources\app.asar\editor\lib\builder\index.js:1:894)
at
at process._tickDomainCallback (internal/process/next_tick.js:135:7)
- 出现概率:100%
- 重现方式:直接创建空包,也会报错
- 临时解决方法:按vivo官方指引使用v2.1.0 可成功打包
- 联系方式:qq 8857165