导入(cocos 3.8.6)新编译项目或者打开已有项目,编译运行时报错:
在老版本的微信开发者工具均没问题。升级了就不行了。更加有意思的是,我下载了抖音开发者工具,试了一下cocos编译的项目,能打开,没有问题。
是微信新开发工具引入了bug?
报错如下:
web-adapter.js? [sm]:1 Read file failed: path: src/effect.bin message: readFile:fail Parameter check error:
parameter.encoding 字段需为 'ascii' | 'base64' | 'binary' | 'hex' | 'latin1' | 'ucs-2' | 'ucs2' | 'utf-16le' | 'utf-8' | 'utf16le' | 'utf8'
fail @ web-adapter.js? [sm]:1
game.js? [sm]:64 Error: readFile:fail Parameter check error:
parameter.encoding 字段需为 'ascii' | 'base64' | 'binary' | 'hex' | 'latin1' | 'ucs-2' | 'ucs2' | 'utf-16le' | 'utf-8' | 'utf16le' | 'utf8'
at Object.fail (web-adapter.js? [sm]:1)
at Object.t (VM32 WAGameSubContext.js:1)
at Function.C.forEach.v.<computed> (VM21 WAGame.js:1)
at p (VM21 WAGame.js:1)
at Object.fail (VM21 WAGame.js:1)
at VM21 WAGame.js:1
at oe (VM21 WAGame.js:1)
at VM21 WAGame.js:1
at r (VM21 WAGame.js:1)
at s (VM21 WAGame.js:1)(env: Windows,mg,1.06.2503300; lib: 3.8.5)
请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。