URP in WebGL fails to build the sample scene

I’m getting an few errors that start when building il2cpp in Unity 2019.3 15f. I’ve tried everything I can think of. This is my second project actually I built an interior scene with a controller and baked it all to find it didn’t work for the same reason. I tried upgrading from 2019.3 5f up to 15f and that didn’t help either. I tried a new project and had the same errors with just the sample scene.

Any help would be appreciated.

Ok I tried this with the new 2019 LTS and no success. I also tried this with the 3D template not the URP and it still fails. Any help for this? Seems like a problem going on a long time for people.

I downloaded Unity 2018 and WebGL builds perfectly. So what is wrong with the entire 2019 line? Is it the newer NDK? A few tutorials online recommend using an older NDK. I tried pointing Unity 2019 to the older NDK and it didn’t let me it requires 19 or newer while all the tutorials suggest version 16b.

Can anyone give any info on this? @alexsuvorov or anyone else?

EDIT: tested and it works fine for me @kartoonist4351

1 Like

What did you test that worked?

Ok after a long road of uninstalling and reinstalling it turns out it was an environment variable for Emscripten that was the issue. Found issue similar here il2cpp error and I removed the one in red.the others are from the post and might help someone
EM_CONFIG
LLVM
NODE
EMSCRIPTEN
EMSCRIPTEN_TMP
EM_CACHE
EMSCRIPTEN_NATIVE_OPTIMIZER
BINARYEN
EMCC_WASM_BACKEND