Closed zouhunter closed 2 years ago
Hi @zouhunter, can you try upgrading the Colyseus SDK?
The textEncoder
is not initialized like this anymore. See latest version here: https://github.com/colyseus/colyseus-unity-sdk/blob/master/Assets/Colyseus/Runtime/WebSocket/WebSocket.jslib
i`m using the release of 0.14.12,thank you very much for your reminder.
Building Library\Bee\artifacts\WebGL\build\debug_WebGL_wasm\build.js failed with output: C:\Program Files\Unity\Hub\Editor\2021.3.1f1c1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\emscripten\tools\acorn-optimizer.js:1845 throw err; ^
SyntaxError: Unexpected token (4311:62) var textEncoder={encoding:"utf-8",encode:encode(input = '') { ^
pos: 159156, loc: Position { line: 4311, column: 62 }, raisedAt: 159157 } emcc2: error: '"C:/Program Files/Unity/Hub/Editor/2021.3.1f1c1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/Emscripten/node/node.exe" "C:\Program Files\Unity\Hub\Editor\2021.3.1f1c1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\emscripten\tools\acorn-optimizer.js" C:\Users\1\AppData\Local\Temp\emscripten_temp_uu7858de\build.js.pp.js AJSDCE minifyWhitespace' failed (1) UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)