Build Failed: Error: TypeError: Cannot read property ‘forEach’ of undefined
at C:\CocosCreator_2.2.1\resources\app.asar\editor\page\build\texture-packer\utils.js:1:1928
at async Promise.all (index 2)
at async Object.exports.queryAtlases (C:\CocosCreator_2.2.1\resources\app.asar\editor\page\build\texture-packer\utils.js:1:951)
at async u.init (C:\CocosCreator_2.2.1\resources\app.asar\editor\page\build\texture-packer\index.js:1:495)
at EventEmitter. (C:\CocosCreator_2.2.1\resources\app.asar\editor-framework\lib\main\ipc.js:1:4952)
at EventEmitter.emit (events.js:194:13)
at EventEmitter.emit (domain.js:469:20)
at WebContents. (C:\CocosCreator_2.2.1\resources\electron.asar\browser\api\web-contents.js:390:13)
at WebContents.emit (events.js:194:13)
at WebContents.EventEmitter.emit (domain.js:469:20)
at WebContents.topLevelDomainCallback (domain.js:124:23)
--------------------
at C:\CocosCreator_2.2.1\resources\app.asar\editor\page\build\texture-packer\utils.js:1:1928
at async Promise.all (index 2)
at async Object.exports.queryAtlases (C:\CocosCreator_2.2.1\resources\app.asar\editor\page\build\texture-packer\utils.js:1:951)
at async u.init (C:\CocosCreator_2.2.1\resources\app.asar\editor\page\build\texture-packer\index.js:1:495)
at C:\CocosCreator_2.2.1\resources\app.asar\editor\page\build\build-worker.js:1:5196
at C:\CocosCreator_2.2.1\resources\app.asar\node_modules\async\lib\async.js:52:16
at C:\CocosCreator_2.2.1\resources\app.asar\node_modules\async\lib\async.js:696:30
at C:\CocosCreator_2.2.1\resources\app.asar\node_modules\async\lib\async.js:167:37
at C:\CocosCreator_2.2.1\resources\app.asar\node_modules\async\lib\async.js:1209:30
at C:\CocosCreator_2.2.1\resources\app.asar\editor\lib\builder\index.js:1:3815
at C:\CocosCreator_2.2.1\resources\app.asar\node_modules\async\lib\async.js:52:16
at C:\CocosCreator_2.2.1\resources\app.asar\node_modules\async\lib\async.js:696:30
at C:\CocosCreator_2.2.1\resources\app.asar\node_modules\async\lib\async.js:167:37
at C:\CocosCreator_2.2.1\resources\app.asar\node_modules\async\lib\async.js:1209:30
at C:\CocosCreator_2.2.1\resources\app.asar\editor\core\gulp-build.js:1:5676
at Gulp. (C:\CocosCreator_2.2.1\resources\app.asar\editor\core\gulp-build.js:1:22364)
at Object.onceWrapper (events.js:282:20)
at Gulp.emit (events.js:194:13)
问题已经反馈,能否提供个复现demo?
谢谢反馈,这个问题将在 2.3 修复。问题是前面的警告引起的。
你好,不升级到2.3的情况下,合并哪个pr可以修复呢?
编辑器的问题,必须升级编辑器才行