WebGl won't build due to il2cpp.exe not running properly. (Folder empty)

I’ve been trying to build a game to be playable on my website using webgl, but it won’t build. It works fine in the development environment and builds as a windows and mac standalone just fine. But when I try to build to webgl, it puts nothing in the designated folder. I checked the console and got 2 exceptions. (Included below)

Is there anyone who has found a fix to this?

2918383–215431–WebGlBuildError.txt (10.3 KB)
2918383–215432–WebGlBuildException.txt (1.96 KB)

Sorry for not replying earlier. Have you solve it?

I wonder if it’s caused by a different version of Python that you have on your machine.

I fixed my Failed running C:\Program Files\Unity\Editor\Data\il2cpp/build/il2cpp.exe Errors by doing the following

  • Save/close project
  • Delete il2cpp_cache folder (eg. /Library/il2cpp_cache) from project Library
  • Reopen project, build worked fine after that

Hope this helps
(PS. Only got these issues after switching from Android Build Platform to WebGL)

Also having the same problem ever sine I got Unity 2017, tried reimporting all assets, tried rebuilding the library, I’m getting 3 errors, attached the log

3273011–252975–webglbuilderrors.txt (18.9 KB)

Have you tried to delete the l2cpp_cache folder?
Are you able to build an empty project?