Skip to content
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

encoderModule.Encoder error when converting a glTF to Draco glTF #576

Open
nordskill opened this issue Mar 23, 2021 · 0 comments
Open

encoderModule.Encoder error when converting a glTF to Draco glTF #576

nordskill opened this issue Mar 23, 2021 · 0 comments

Comments

@nordskill
Copy link

Hello,
I've got an issue with converting glTF to Draco glTF, which I didn't have before.
When I'm trying to convert model using gltf-pipeline -i model.gltf -o modelDraco.gltf -d command I get this error:

TypeError: encoderModule.Encoder is not a constructor
    at /usr/local/lib/node_modules/gltf-pipeline/lib/compressDracoMeshes.js:124:29
    at Function.ForEach.meshPrimitive (/usr/local/lib/node_modules/gltf-pipeline/lib/ForEach.js:235:27)
    at /usr/local/lib/node_modules/gltf-pipeline/lib/compressDracoMeshes.js:101:17
    at Function.ForEach.object (/usr/local/lib/node_modules/gltf-pipeline/lib/ForEach.js:45:27)
    at Function.ForEach.topLevel (/usr/local/lib/node_modules/gltf-pipeline/lib/ForEach.js:64:20)
    at Function.ForEach.mesh (/usr/local/lib/node_modules/gltf-pipeline/lib/ForEach.js:226:20)
    at compressDracoMeshes (/usr/local/lib/node_modules/gltf-pipeline/lib/compressDracoMeshes.js:100:13)
    at /usr/local/lib/node_modules/gltf-pipeline/lib/processGltf.js:65:16
    at tryCatcher (/usr/local/lib/node_modules/gltf-pipeline/node_modules/bluebird/js/release/util.js:16:23)
    at Object.gotValue (/usr/local/lib/node_modules/gltf-pipeline/node_modules/bluebird/js/release/reduce.js:166:18)
    at Object.gotAccum (/usr/local/lib/node_modules/gltf-pipeline/node_modules/bluebird/js/release/reduce.js:155:25)
    at Object.tryCatcher (/usr/local/lib/node_modules/gltf-pipeline/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/usr/local/lib/node_modules/gltf-pipeline/node_modules/bluebird/js/release/promise.js:547:31)
    at Promise._settlePromise (/usr/local/lib/node_modules/gltf-pipeline/node_modules/bluebird/js/release/promise.js:604:18)
    at Promise._settlePromise0 (/usr/local/lib/node_modules/gltf-pipeline/node_modules/bluebird/js/release/promise.js:649:10)
    at Promise._settlePromises (/usr/local/lib/node_modules/gltf-pipeline/node_modules/bluebird/js/release/promise.js:729:18)

But around 2 years ago I was converting the same exact model with the same command and it worked as expected.
What have changed since that time: node.js version & gltf-pipeline version updates.
The old Node.js version was 6. And the gltf-pipeline version was 2.1.4.
Now I'm using the latest versions of the both.

Please, advice what may cause this issue and how it can be fixed.
Thank you in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant