draco
draco copied to clipboard
RuntimeError: Aborted(TypeError: import object field 'env' is not an Object). Build with -sASSERTIONS for more info.
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