@937329641 写道:
构建项目,报错找不到放在resources下的json资源,但是项目中是有这个文件的。
这个json第一次提交时报语法错误,改正后控制台仍然有报错,可能就是因为这样构建才找不到这个资源?这个报错即使在修复json的语法错误后仍然显示,这是creator编辑器的bug?
那么是不是应该清理一下哪里的缓存?项目里删掉了这个json文件构建还是报错。
Creator 版本:Cocos Creator 2.3.0
目标平台: 所有平台构建都会触发
详细报错信息,包含调用堆栈:
2020-02-13T07:31:11.341Z - normal: Building D:\Projects\Cocos\PoL
2020-02-13T07:31:11.341Z - normal: Destination D:\Projects\Cocos\PoL\build\wechatgame
2020-02-13T07:31:11.341Z - normal: Delete D:\Projects\Cocos\PoL\build\wechatgame***,!D:\Projects\Cocos\PoL\build\wechatgame\game.json,!D:\Projects\Cocos\PoL\build\wechatgame\project.config.json
2020-02-13T07:31:13.902Z - normal: Start building assets
2020-02-13T07:31:13.902Z - normal: Start spawn build-worker
2020-02-13T07:31:14.406Z - normal: Finish spawn build-worker
2020-02-13T07:31:14.406Z - normal: Start init build-worker
2020-02-13T07:31:15.736Z - normal: Finish init build-worker
2020-02-13T07:31:15.736Z - normal: Start build-assets in worker
2020-02-13T07:31:15.842Z - error: Build Failed: Error: cc.JsonAsset in "resources/map/level/digest" does not exist.
at C:\CocosCreator_2.3.0\resources\engine\bin.cache\dev\cocos2d\core\load-pipeline\CCLoader.js:421:24
at C:\CocosCreator_2.3.0\resources\engine\bin.cache\dev\cocos2d\core\platform\utils.js:74:9
at processTicksAndRejections (internal/process/task_queues.js:79:9)
at EventEmitter.o (C:\CocosCreator_2.3.0\resources\app.asar\editor\core\gulp-build.js:1:8119)
at Object.onceWrapper (events.js:282:20)
at EventEmitter.emit (events.js:194:13)
at EventEmitter.emit (domain.js:469:20)
at EventEmitter. (C:\CocosCreator_2.3.0\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. (C:\CocosCreator_2.3.0\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 C:\CocosCreator_2.3.0\resources\app.asar\editor\lib\builder\index.js:1:3834
at wrapper (C:\CocosCreator_2.3.0\resources\app.asar\node_modules\async\dist\async.js:272:20)
at next (C:\CocosCreator_2.3.0\resources\app.asar\node_modules\async\dist\async.js:4584:24)
at C:\CocosCreator_2.3.0\resources\app.asar\node_modules\async\dist\async.js:325:20
at C:\CocosCreator_2.3.0\resources\app.asar\editor\core\gulp-build.js:1:5842
at Gulp. (C:\CocosCreator_2.3.0\resources\app.asar\editor\core\gulp-build.js:1:24252)
at Object.onceWrapper (events.js:282:20)
at Gulp.emit (events.js:194:13)
at Gulp.EventEmitter.emit (domain.js:469:20)
帖子: 1
参与者: 1