draco icon indicating copy to clipboard operation
draco copied to clipboard

RuntimeError: Aborted(TypeError: import object field 'env' is not an Object). Build with -sASSERTIONS for more info.

Open CITIZENDOT opened this issue 1 year ago • 0 comments

I'm using draco3d inside a webworker to decode a draco mesh to three.js Geometry. I tried doing this using a node script locally and it worked without any error. But with the webworker, I'm getting above error.

Here's how I'm loading the decoder module.

import draco3d from "draco3d";
let decoderModule = null;

draco3d.createDecoderModule({}).then(
  (module) => {
    decoderModule = module;
  }
);

draco3d version: 1.5.6

CITIZENDOT avatar Apr 08 '23 18:04 CITIZENDOT