1.之前的项目是2.3.4,为了小游戏升级到2.4.6,编辑器自己升级项目后模拟器启动后,发现socket收到的消息不完整,之后尝试构建,发现构建失败。
2.用2.4.0 2.4.2 模拟器和构建都能成功,2.4.4 2.4.5模拟器正常但是构建失败。
3. 错误信息
error: Build Failed: Error: TypeError: Cannot read property ‘length’ of undefined
at r.parseObjField (/Applications/CocosCreator/Creator/2.4.5/CocosCreator.app/Contents/Resources/app.asar/editor/share/engine-extends/serialize-compiled/parser.ccc:1:4650)
at r.parseField (/Applications/CocosCreator/Creator/2.4.5/CocosCreator.app/Contents/Resources/app.asar/editor/share/engine-extends/serialize-compiled/parser.ccc:1:3891)
at r.parseObjField (/Applications/CocosCreator/Creator/2.4.5/CocosCreator.app/Contents/Resources/app.asar/editor/share/engine-extends/serialize-compiled/parser.ccc:1:5492)
at r.parseField (/Applications/CocosCreator/Creator/2.4.5/CocosCreator.app/Contents/Resources/app.asar/editor/share/engine-extends/serialize-compiled/parser.ccc:1:3891)
at r.enumerateClass (/Applications/CocosCreator/Creator/2.4.5/CocosCreator.app/Contents/Resources/app.asar/editor/share/engine-extends/serialize-compiled/parser.ccc:1:2846)
at r.enumerateNode (/Applications/CocosCreator/Creator/2.4.5/CocosCreator.app/Contents/Resources/app.asar/editor/share/engine-extends/serialize-compiled/parser.ccc:1:3531)
at r.parseObjField (/Applications/CocosCreator/Creator/2.4.5/CocosCreator.app/Contents/Resources/app.asar/editor/share/engine-extends/serialize-compiled/parser.ccc:1:4319)
at r.parseField (/Applications/CocosCreator/Creator/2.4.5/CocosCreator.app/Contents/Resources/app.asar/editor/share/engine-extends/serialize-compiled/parser.ccc:1:3891)
at r.enumerateClass (/Applications/CocosCreator/Creator/2.4.5/CocosCreator.app/Contents/Resources/app.asar/editor/share/engine-extends/serialize-compiled/parser.ccc:1:2846)
at r.parseObjField (/Applications/CocosCreator/Creator/2.4.5/CocosCreator.app/Contents/Resources/app.asar/editor/share/engine-extends/serialize-compiled/parser.ccc:1:4738)
at IpcMainImpl.o (/Applications/CocosCreator/Creator/2.4.5/CocosCreator.app/Contents/Resources/app.asar/editor/core/gulp-build.ccc:1:9622)
at Object.onceWrapper (events.js:422:26)
at IpcMainImpl.emit (events.js:315:20)
at IpcMainImpl.emit (domain.js:483:12)
at IpcMainImpl. (/Applications/CocosCreator/Creator/2.4.5/CocosCreator.app/Contents/Resources/app.asar/editor-framework/lib/main/ipc.ccc:1:3399)
at IpcMainImpl.emit (events.js:315:20)
at IpcMainImpl.emit (domain.js:483:12)
at Object. (electron/js2c/browser_init.js:157:9047)
at Object.emit (events.js:315:20)
at Object.emit (domain.js:483:12)
at /Applications/CocosCreator/Creator/2.4.5/CocosCreator.app/Contents/Resources/app.asar/editor/lib/builder/index.ccc:1:3950
at wrapper (/Applications/CocosCreator/Creator/2.4.5/CocosCreator.app/Contents/Resources/app.asar/node_modules/async/dist/async.js:272:20)
at next (/Applications/CocosCreator/Creator/2.4.5/CocosCreator.app/Contents/Resources/app.asar/node_modules/async/dist/async.js:4584:24)
at /Applications/CocosCreator/Creator/2.4.5/CocosCreator.app/Contents/Resources/app.asar/node_modules/async/dist/async.js:325:20
at /Applications/CocosCreator/Creator/2.4.5/CocosCreator.app/Contents/Resources/app.asar/editor/core/gulp-build.ccc:1:5879
at Gulp. (/Applications/CocosCreator/Creator/2.4.5/CocosCreator.app/Contents/Resources/app.asar/editor/core/gulp-build.ccc:1:26733)
at Object.onceWrapper (events.js:422:26)
at Gulp.emit (events.js:315:20)
at Gulp.emit (domain.js:483:12)