-
Creator 版本: 2.4.11
-
目标平台: 微信小游戏
-
重现方式:必现,有项目链接地址
-
首个报错:index.js:4 [adapter] adapter evaluateScriptFile err: Error: module ‘plugin/@babel/runtime/helpers/Arrayincludes.js’ is not defined, require args is ‘…/@babel/runtime/helpers/Arrayincludes’
项目勾选允许分离引擎,在PC小游戏上黑屏;
不勾选分离,则PC小游戏运行正常.
安卓和IOS均正常
开发环境如下:
游戏引擎: Cocos Creator 2.4.11
微信开发者工具: Stable 1.06.2303060
调试基础库:2.31.0
测试用的Windows微信客户端:3.9.2.23
项目下载地址:
https://cdn.weimigames.com/xxqstProject/down/微信PC小游戏调试包0418.zip
报错信息如下:
图片版本:
文字版本:
PC Adapter: 2.0.4-game-wmpf, 2023.2.23 19:51:51
VM144:1 Wechat Lib:2.26.1, 2023.2.21 14:41:04
index.js:4 global.Object already protected.
index.js:4 doNotWriteObj cost: 4 ms.
index.js:4 deepFreeze globals: Array(85)
index.js:4 deepFreeze cost: 0 ms.
VM144:1 Unhandled promise rejection undefined
e.exports @ VM144:1
VM165:4017 Object
index.js:4 [adapter] adapter evaluateScriptFile err: Error: module ‘plugin/@babel/runtime/helpers/Arrayincludes.js’ is not defined, require args is ‘…/@babel/runtime/helpers/Arrayincludes’
at O (eval at globalThis.__adapterCommand (frame.js:1:2244), <anonymous>:1:92461)
at n (eval at globalThis.__adapterCommand (frame.js:1:2244), <anonymous>:1:91825)
at eval (eval at globalThis.__adapterCommand (frame.js:1:2244), <anonymous>:6:14)
at O (eval at globalThis.__adapterCommand (frame.js:1:2244), <anonymous>:1:92719)
at n (eval at globalThis.__adapterCommand (frame.js:1:2244), <anonymous>:1:91825)