-
Notifications
You must be signed in to change notification settings - Fork 250
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draco compression tries to use the fetch api to load the wasm blob off the filesystem and fails with ERR_INVALID_URL
#613
Comments
ERR_INVALID_URL
Reproducible in script: const draco3d = require("draco3d");
let decoderModulePromise = Promise.resolve(draco3d.createDecoderModule({}));
console.log({decoderModulePromise})
@expenses - Were you able to find a quick workaround? (For example, hardcode the path) |
No, I didn't look very hard into this. An easy workaround seems like it should be possible though. |
Seems to only happen in Node 18. Node 16 works fine. I tested draco 1.5.2 for both. Assuming this problem isn't caused by gltf-pipeline in some way, could you submit to bug report to the draco repo? |
Done: google/draco#888 |
Can you try running with "--no-experimental-fetch" command line flag? We think this has to deal with emscripten-core/emscripten#16913 |
I can confirm that this fixes the problem for me. |
Full error:
The text was updated successfully, but these errors were encountered: