WebGL Build and Publish Error [10:41:27] Building Library... failed with output

I am using Unity 2022.3.12f1 and I have the WebGL Publisher 4.2.3 package installed.

When I select Publish > WebGL Project > Build and Publish I get the following error:

[10:41:27] Building Library\Bee\artifacts\WebGL\ManagedStripped failed with output:
C:\Program Files\Unity\Hub\Editor\2022.3.12f1\Editor\Data\il2cpp\build\deploy\UnityLinker.exe @Library\Bee\artifacts\rsp\6451757432521902355.rsp

In the selected folder location, I have:

Build

Builds.data.gz
Builds.loader

TemplateData

12 files

index.html

When I open the .html file, there’s an error message that says “Unable to load file Build/Builds.framework.js.gz! Check that the file exists on the remote server. (also check browser Console and Devtools Network tab to debug)”.

I am fairly junior at programming, so if you know a fix, please share it as simply as you can. :slight_smile: Thanks in advance!

1 Like

Try creating a new project with that editor version and build. If it builds and runs, it’s an issue with the project. Otherwise it could be an issue with Unity installation, or quite commonly “security” software that tries to “protect” you from working as a developer.

You could also try to lower stripping level in Player Settings to see if that makes the issue go away, but if it doesn’t, set it back because this can noticably decrease build size. Also there’s an editor.log which may contain more details about the build process. Feel free to post that log.