项目需要升级,按照官方要求先升级到2.4.3再升级到3.2.0.
目前我们用2.4.3打开,运行没问题,构建的时候提示
Build Failed: Error: TypeError: this.objects.has is not a function
代码里面搜了this.objecets.has,发现没有相关代码。
有没有遇到同样问题的?
项目需要升级,按照官方要求先升级到2.4.3再升级到3.2.0.
目前我们用2.4.3打开,运行没问题,构建的时候提示
Build Failed: Error: TypeError: this.objects.has is not a function
代码里面搜了this.objecets.has,发现没有相关代码。
有没有遇到同样问题的?
看错误堆栈
Build Failed: Error: TypeError: this.objects.has is not a function
at h.addNode (F:\CocosDashboard_1.0.4\resources.editors\Creator\2.4.3\resources\app.asar\editor\share\engine-extends\serialize-compiled\builder.js:1:3598)
at h.setDynamicProperty (F:\CocosDashboard_1.0.4\resources.editors\Creator\2.4.3\resources\app.asar\editor\share\engine-extends\serialize-compiled\builder.js:1:3517)
at h.doSetClassProperty (F:\CocosDashboard_1.0.4\resources.editors\Creator\2.4.3\resources\app.asar\editor\share\engine-extends\serialize-compiled\builder.js:1:3404)
at h.setProperty_Class (F:\CocosDashboard_1.0.4\resources.editors\Creator\2.4.3\resources\app.asar\editor\share\engine-extends\serialize-compiled\builder.js:1:2076)
at r.parseObjField (F:\CocosDashboard_1.0.4\resources.editors\Creator\2.4.3\resources\app.asar\editor\share\engine-extends\serialize-compiled\parser.js:1:4794)
at r.parseField (F:\CocosDashboard_1.0.4\resources.editors\Creator\2.4.3\resources\app.asar\editor\share\engine-extends\serialize-compiled\parser.js:1:3979)
at r.parse (F:\CocosDashboard_1.0.4\resources.editors\Creator\2.4.3\resources\app.asar\editor\share\engine-extends\serialize-compiled\parser.js:1:1574)
at D (F:\CocosDashboard_1.0.4\resources.editors\Creator\2.4.3\resources\app.asar\editor\share\engine-extends\serialize-compiled\parser.js:1:6001)
at Object.Editor.serializeCompiled (F:\CocosDashboard_1.0.4\resources.editors\Creator\2.4.3\resources\app.asar\editor\share\engine-extends\serialize-compiled\parser.js:1:6130)
at o._doBuildJson (F:\CocosDashboard_1.0.4\resources.editors\Creator\2.4.3\resources\app.asar\editor\page\build\build-asset.js:1:2686)
at EventEmitter.o (F:\CocosDashboard_1.0.4\resources.editors\Creator\2.4.3\resources\app.asar\editor\core\gulp-build.js:1:9558)
at Object.onceWrapper (events.js:282:20)
at EventEmitter.emit (events.js:194:13)
at EventEmitter.emit (domain.js:469:20)
at EventEmitter. (F:\CocosDashboard_1.0.4\resources.editors\Creator\2.4.3\resources\app.asar\editor-framework\lib\main\ipc.js:1:3399)
at EventEmitter.emit (events.js:194:13)
at EventEmitter.emit (domain.js:469:20)
at WebContents. (F:\CocosDashboard_1.0.4\resources.editors\Creator\2.4.3\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 F:\CocosDashboard_1.0.4\resources.editors\Creator\2.4.3\resources\app.asar\editor\lib\builder\index.js:1:3838
at wrapper (F:\CocosDashboard_1.0.4\resources.editors\Creator\2.4.3\resources\app.asar\node_modules\async\dist\async.js:272:20)
at next (F:\CocosDashboard_1.0.4\resources.editors\Creator\2.4.3\resources\app.asar\node_modules\async\dist\async.js:4584:24)
at F:\CocosDashboard_1.0.4\resources.editors\Creator\2.4.3\resources\app.asar\node_modules\async\dist\async.js:325:20
at F:\CocosDashboard_1.0.4\resources.editors\Creator\2.4.3\resources\app.asar\editor\core\gulp-build.js:1:5860
at Gulp. (F:\CocosDashboard_1.0.4\resources.editors\Creator\2.4.3\resources\app.asar\editor\core\gulp-build.js:1:26114)
at Object.onceWrapper (events.js:282:20)
at Gulp.emit (events.js:194:13)
at Gulp.EventEmitter.emit (domain.js:469:20)
不是很清楚,不过或许可以检查一下有没有循环引用
谢谢,我再查查看
我从2.3.2 到2.4.2,一个版本一个版本升上去都没问题,就是2.4.3有问题