Search Issue Tracker

Duplicate

Votes

0

Found in

2022.2.0a9

Issue ID

1413067

Regression

Yes

[WebGL] "InvalidOperationException: Emscripten SDK for this platform is not present" error thrown during WebGL build

Web Platform

-

Steps to reproduce:
1. Create a new 3D project
2. Switch platform to WebGL
3. Click Build in Build Settings

Expected result: Build succeeds without errors
Actual result: Build succeeds, but errors are thrown during the process
InvalidOperationException: Emscripten SDK for this platform is not present at C:/Program Files/2022.2.0a9/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\Emscripten-win-x64. Did you build support for this platform?
at UnityEditor.WebGL.Emscripten.EmscriptenPaths.EmscriptenSdkDirectory () [0x000a0] in <66e2bc16a6374e2eac74a8912af05ddd>:0
at UnityEditor.WebGL.Emscripten.EmscriptenPaths.get_emsdkDir () [0x0000e] in <66e2bc16a6374e2eac74a8912af05ddd>:0
at UnityEditor.WebGL.Emscripten.EmscriptenPaths.get_nodeExecutable () [0x0000e] in <66e2bc16a6374e2eac74a8912af05ddd>:0
at UnityEditor.WebGL.WebsockifyEditorWrapper..ctor () [0x00033] in <66e2bc16a6374e2eac74a8912af05ddd>:0

Reproduced with: 2022.2.0a9
Didn't reproduce with: 2022.2.0a8, 2022.1.0b14, 2021.2.17f1, 2020.3.32f1, 2019.4.37f1

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.