Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

WebGL building Error: FileNotFoundException build.wasm does not exist

Discussion in 'Web' started by Legion5slov, Sep 25, 2019.

  1. Legion5slov

    Legion5slov

    Joined:
    Jun 2, 2019
    Posts:
    12
    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!!
     
  2. Legion5slov

    Legion5slov

    Joined:
    Jun 2, 2019
    Posts:
    12
    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 !!!
     
  3. jukka_j

    jukka_j

    Unity Technologies

    Joined:
    May 4, 2018
    Posts:
    953
    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.
     
  4. Legion5slov

    Legion5slov

    Joined:
    Jun 2, 2019
    Posts:
    12
    Successfully! Simply, reinstalled Windows. The same version (Win 10 pro). Errors have disappeared. Maybe some programs created an environment variable in the registry.