Resp All!
I and my frend have same computers. Both PC have the same OS (Win10), same Unity ver (2019.2.5f1), same project, placed in same dir. On my frends PC building to WebGL run successful. On my PC - 3 errors:
1. FileNotFoundException: D:\Cloud-Google\LeoUnity\UnityTest4\Temp\StagingArea\Data\linkresult_wasm\build.wasm does not exist
System.IO.File.Copy (System.String sourceFileName, System.String destFileName, System.Boolean overwrite) (at <599589bf4ce248909b8a14cbe4a2034e>:0)
2. …
How can I overcome these errors??
Thanks if anyone can help!!
And here’s another thing: Every time, before building, I create a target directory and point it on “build and run”. And every time after a error building, Unity removes it !!!
First guess is perhaps if the project build has failed, and did not produce a .wasm file. Are there any errors before the error in question?
Try exporting an empty project to WebGL, does that work? If it does, then it suggests some trouble specific to the project, and if empty project does not export properly, then it suggests something wrong with the toolchain installation.
Successfully! Simply, reinstalled Windows. The same version (Win 10 pro). Errors have disappeared. Maybe some programs created an environment variable in the registry.