Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice
  2. Megacity Metro Demo now available. Download now.
    Dismiss Notice

Bug Building URP Template to WebGL fails (due to Analytics Library)

Discussion in '2021.2 Beta' started by adamgolden, Aug 14, 2021.

  1. adamgolden

    adamgolden

    Joined:
    Jun 17, 2019
    Posts:
    1,554
    In 2021.2.0b7, new URP project from template, build for WebGL fails with this:
    Code (CSharp):
    1. Building Library\Bee\artifacts\WebGL\build\debug_WebGL_wasm\build.js failed with output:
    2. emcc:WARNING: --llvm-lto ignored when using llvm backend
    3. emcc2: error: '--js-library': file not found: 'Packages/com.unity.analytics/Plugins/WindowUtil.jslib'
    The solution is to open Package Manager and remove the Analytics Library (currently 3.5.3).
     
  2. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    3,135
    adamgolden likes this.
  3. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    3,135
    Unfortunately the fix didn't make it into b9 and has yet to land.
     
    adamgolden likes this.