creator升级后构建失败,如何查找问题?

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)

搜索查询发现有人碰到这个 问题,最后是一个一个删除文件排查后发现是一个 .anim 文件造成的,应该如何快速定位问题呢?

上传下anim文件,看下文件里面是否有异常数据,一般是有null值的数据,需要手动修复下,编辑器个别情况下没有实现安全处理会直接报错,没法提供定位信息。

现在是我不知道我这个是什么问题,我回复的是搜索出来别人是这个问题,请问有什么方法来确定问题吗?

2.4.2 一切正常, 2.4.3 构建就开始出现这个错误了