团结引擎1.1.3 使用WXSDK 0.1.15版本,WebGL2.0 导出的小游戏工程,其中直接在流浪器上访问导出的工程目录的webgl是可以正常显示游戏的,但是在微信开发者工具 Nightly 1.06.2406032的版本中打开生成的对应的minigame小游戏工程启动游戏的时候报以下错误
[ appservice 生成错误] check-version.js: file: check-version.js
check-version.js: Unexpected token (5:31)
3 | const { version, SDKVersion, platform, system } = wx.getSystemInfoSync();
4 | const accountInfo = wx.getAccountInfoSync();
> 5 | const envVersion = accountInfo?.miniProgram?.envVersion;
| ^
6 | function compareVersion(v1, v2) {
7 | if (!v1 || !v2) {
8 | return false;(env: Windows,mg,1.06.2406032; lib: 3.2.5)
[ appservice 生成错误] unity-sdk/fs.js: file: unity-sdk/fs.js
unity-sdk/fs.js: Unexpected token (28:59)
26 | returnRes = JSON.stringify({
27 | bytesRead: res.bytesRead,
> 28 | arrayBufferLength: res.arrayBuffer?.byteLength ?? 0,
| ^
29 | });
30 | }
31 | else if (method === 'readCompressedFile') {(env: Windows,mg,1.06.2406032; lib: 3.2.5)
[ appservice 生成错误] unity-sdk/util.js: file: unity-sdk/util.js
unity-sdk/util.js: Unexpected token (49:34)
47 | }
48 | const err = currentStackTrace();
> 49 | let fullTrace = err.stack?.toString();
| ^
50 | if (fullTrace) {
51 | const posOfThisFunc = fullTrace.indexOf('WXUncaughtException');
52 | if (posOfThisFunc !== -1) {(env: Windows,mg,1.06.2406032; lib: 3.2.5)
[ appservice 生成错误] unity-sdk/audio/common.js: file: unity-sdk/audio/common.js
unity-sdk/audio/common.js: Unexpected token (25:34)
23 | const channel = WEBAudio.audioInstances[+channelInstance];
24 | if (channel.source) {
> 25 | channel.setVolume?.(value ? 0 : unityAudioVolume.get(channel) ?? 1);
| ^
26 | }
27 | }
28 |