google / google/draco

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

Open
#994 0 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
C++
Stars
7.5k
Forks
1.1k
Avg merge
47m
Merged PRs (30d)
1

Description

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.

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

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

`draco3d` version: `1.5.6`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.