Hello there. I use TeamCity
with Windows build agent for my project. Recently I switched from CocosCreator 1.10.2
to CocosCreator 2.0.7
and now this CI build fails.
Command line:
CocosCreator --path . --build platform=web-desktop;dest=build;debug=false
Error:
[7176] Error: Build Failed: TypeError: Cannot convert undefined or null to object
at Function.keys (<anonymous>)
at module.exports.getAssetUuids (c:\cc207\resources\app.asar\editor\core\build-results.js:1:461)
at Gulp.<anonymous> (c:\cc207\resources\app.asar\editor\core\gulp-build.js:1:9691)
at module.exports (c:\cc207\resources\app.asar\node_modules\orchestrator\lib\runTask.js:34:7)
at Gulp.Orchestrator._runTask (c:\cc207\resources\app.asar\node_modules\orchestrator\index.js:273:3)
at Gulp.Orchestrator._runStep (c:\cc207\resources\app.asar\node_modules\orchestrator\index.js:214:10)
at c:\cc207\resources\app.asar\node_modules\orchestrator\index.js:279:18
at finish (c:\cc207\resources\app.asar\node_modules\orchestrator\lib\runTask.js:21:8)
at cb (c:\cc207\resources\app.asar\node_modules\orchestrator\lib\runTask.js:29:3)
at BrowserWindow.<anonymous> (c:\cc207\resources\app.asar\editor\core\gulp-build.js:1:8784)
at r.waterfall.r (c:\cc207\resources\app.asar\editor\lib\builder\index.js:1:3197)
at c:\cc207\resources\app.asar\node_modules\async\lib\async.js:52:16
at c:\cc207\resources\app.asar\node_modules\async\lib\async.js:696:30
at c:\cc207\resources\app.asar\node_modules\async\lib\async.js:167:37
at c:\cc207\resources\app.asar\node_modules\async\lib\async.js:1209:30
at Gulp.doneCallback (c:\cc207\resources\app.asar\editor\core\gulp-build.js:1:24012)
at Gulp.Orchestrator.stop (c:\cc207\resources\app.asar\node_modules\orchestrator\index.js:150:9)
at c:\cc207\resources\app.asar\node_modules\orchestrator\index.js:277:22
at finish (c:\cc207\resources\app.asar\node_modules\orchestrator\lib\runTask.js:21:8)
[7176] Error: TypeError: Cannot convert undefined or null to object
at Function.keys (<anonymous>)
at module.exports.getAssetUuids (c:\cc207\resources\app.asar\editor\core\build-results.js:1:461)
at Gulp.<anonymous> (c:\cc207\resources\app.asar\editor\core\gulp-build.js:1:9691)
at module.exports (c:\cc207\resources\app.asar\node_modules\orchestrator\lib\runTask.js:34:7)
at Gulp.Orchestrator._runTask (c:\cc207\resources\app.asar\node_modules\orchestrator\index.js:273:3)
at Gulp.Orchestrator._runStep (c:\cc207\resources\app.asar\node_modules\orchestrator\index.js:214:10)
at c:\cc207\resources\app.asar\node_modules\orchestrator\index.js:279:18
at finish (c:\cc207\resources\app.asar\node_modules\orchestrator\lib\runTask.js:21:8)
at cb (c:\cc207\resources\app.asar\node_modules\orchestrator\lib\runTask.js:29:3)
at BrowserWindow.<anonymous> (c:\cc207\resources\app.asar\editor\core\gulp-build.js:1:8784)
at Editor.Builder.buildCommand.e (c:\cc207\resources\app.asar\editor\index.js:1:1677)
at r.series.e (c:\cc207\resources\app.asar\editor\lib\builder\index.js:1:4517)
at c:\cc207\resources\app.asar\node_modules\async\lib\async.js:726:13
at c:\cc207\resources\app.asar\node_modules\async\lib\async.js:52:16
at c:\cc207\resources\app.asar\node_modules\async\lib\async.js:264:21
at c:\cc207\resources\app.asar\node_modules\async\lib\async.js:44:16
at c:\cc207\resources\app.asar\node_modules\async\lib\async.js:723:17
at c:\cc207\resources\app.asar\node_modules\async\lib\async.js:167:37
at r.waterfall.r (c:\cc207\resources\app.asar\editor\lib\builder\index.js:1:3582)
Uncaught Exception: ReferenceError: error is not defined
c:\cc207\resources\app.asar\editor\init.js:1
at Editor.Builder.buildCommand.e (c:\cc207\resources\app.asar\editor\index.js:1:1702)
at r.series.e (c:\cc207\resources\app.asar\editor\lib\builder\index.js:1:4517)
at c:\cc207\resources\app.asar\node_modules\async\lib\async.js:726:13
(function (exports, require, module, __filename, __dirname, process, global, Buffer) { return function (exports, require, module, __filename, __dirname) { "use strict";const e=require("electron").ipcMain,t=require("fire-fs"),i=(require("fire-path"),require("async")),r=require("../editor-framework/lib/share/ipc-listener");let o=e=>{process.send({channel:"editor-error",message:e.message,stack:e.stack})};process.on("uncaughtException",o),Editor.App.extend({runDashboard(){Editor.Window.main.close()},run(){if("string"!=typeof Editor._buildCommand&&"string"!=typeof Editor._compileCommand){Editor.run("app://editor/index.html",{title:"Cocos Creator",width:1280,height:720,minWidth:100,minHeight:100,show:!1,resizable:!0});var t=Editor.Window.main;t.nativeWin.on("close",function(){t.closing=!0}),e.on("app:is-main-window-attemp-to-close",e=>{e.returnValue=!!t.closing,t.closing=!1}),Editor.Metrics.setClientId(function(){Editor.Metrics.prepareUserIdentity(),Editor
at c:\cc207\resources\app.asar\node_modules\async\lib\async.js:52:16
at c:\cc207\resources\app.asar\node_modules\async\lib\async.js:264:21
TypeError: process.send is not a function
at c:\cc207\resources\app.asar\node_modules\async\lib\async.js:44:16
at process.o (c:\cc207\resources\app.asar\editor\init.js:1:342)
at c:\cc207\resources\app.asar\node_modules\async\lib\async.js:723:17
at emitOne (events.js:101:20)
at c:\cc207\resources\app.asar\node_modules\async\lib\async.js:167:37
at process.emit (events.js:191:7)
at r.waterfall.r (c:\cc207\resources\app.asar\editor\lib\builder\index.js:1:3582)
at process._fatalException (bootstrap_node.js:308:26)
at c:\cc207\resources\app.asar\node_modules\async\lib\async.js:52:16
Process exited with code 7
Building the project from GUI and terminal works just fine but building it with CI system fails.
Unfortunately I cannot unpack app.asar
to look what is going on - I guess it’s encrypted.
I found similar report on chinese forum https://forum.cocos.com/t/windows-jenkins/65950/7 but it’s not resolved yet.
Thank you.