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 LinkError: import object field '' is not a number

Discussion in 'Web' started by mmaynard1, Feb 11, 2019.

  1. mmaynard1

    mmaynard1

    Joined:
    Jan 10, 2019
    Posts:
    1
    Hi,

    I'm testing building for WebGL from 2018.3 and I'm having some problems running the build once it's made. Once I run the build (in Firefox) it freezes at about 90% loading and gives the error "failed to asynchronously prepare wasm: LinkError: import object field '_ZNSt3_14cerrE' is not a Number. It doesn't happen with other projects and the error is called on UnityLoader.js 4:9417 and line 4:9380.

    I've tried reducing qualities and tweaking the configuration settings, but I haven't had any luck. Can someone give me some insight? Thanks.

    Edit: Opening the browser console gave me some more detail; the error says WebAssembly binary source is not available. It seems that the Javascript is looking for an element that doesn't exist?
     
    Last edited: Feb 11, 2019