Creator 命令行构建异常 TypeError: Cannot read property 'webContents' of null

命令行构建成功后,输出异常信息,导致Jenkins认为构建失败
2022-6-11 16:43-debug: build success in 8788 ms!

building…100.00% 2022-6-11 16:43 Build success in 8788 ms!
TypeError: Cannot read property ‘webContents’ of null
at Object.sendToWin (C:\CocosDashboard_1.2.0\resources.editors\Creator\3.5.1\resources\app.asar\node_modules@base\electron-base-ipc\dist\browser.ccc:1:1611)
at Object.sendToWin (C:\CocosDashboard_1.2.0\resources.editors\Creator\3.5.1\resources\app.asar\node_modules@base\electron-base-ipc\dist\index.js:1:355)
at Object.broadcast (C:\CocosDashboard_1.2.0\resources.editors\Creator\3.5.1\resources\app.asar\node_modules@editor\creator\dist\message\browser\index.ccc:1:2516)
at Object.broadcast (C:\CocosDashboard_1.2.0\resources.editors\Creator\3.5.1\resources\app.asar\node_modules@editor\creator\dist\message\index.ccc:1:736)
at Item.reset (C:\CocosDashboard_1.2.0\resources.editors\Creator\3.5.1\resources\app.asar\builtin\asset-db\dist\browser\worker\tasks.ccc:1:4504)
at Manager.reset (C:\CocosDashboard_1.2.0\resources.editors\Creator\3.5.1\resources\app.asar\node_modules\v-dependence\classify\manager.js:118:20)
at Manager.reset (C:\CocosDashboard_1.2.0\resources.editors\Creator\3.5.1\resources\app.asar\node_modules\v-dependence\classify\manager.js:126:18)

1赞

我也遇到相同问题,请问怎么解决的?

可以 试下
shell 的
command1 || command2
类似try catch

请问怎么解决得

有老哥解决这个问题没?3.5.2同样的问题,3.4.2毛事都没有的,日常改崩

把平台改成ios可以构建成功

你意思是用原生构建出来的是web,不会吧?

我以为你要构建原生子包,如果是web的话,目前没什么好的方法

嗯,现在要的是web包。前两周刚从3.4.2升上来没看自动化构建方面的,血亏。

直接用构建面板构建吧

webContents of null 不影响构建结果,这个错误也不会输出到构建结果上,只是日志上会有。
这是关闭流程导致的问题,在广播的时候,强行关闭了进程,导致目标丢失~后续版本会修复这个错误~

感谢反馈吖

1赞

赶紧修复发布撒,很影响日常自动化发布啊。速度。 :rage: :rage: :rage: :rage: :rage: :rage: :rage: :rage: :rage: :rage:

遇到同样的问题 ,虽然能打包出来,影响自动化发布流程。有临时解决方案吗

什么时候,哪个版本会修复?

打包完成后续有一些列操作都没法用了,打包完了还需要处理资源加密,还有bundle包处理。直接给卡没了