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

Does not work in a node script (mjs file) #5

Open
scott-cornwell opened this issue Oct 5, 2024 · 1 comment
Open

Does not work in a node script (mjs file) #5

scott-cornwell opened this issue Oct 5, 2024 · 1 comment

Comments

@scott-cornwell
Copy link

scott-cornwell commented Oct 5, 2024

I tried to use this combined with free-tex-packer-core in a node .mjs script but errors with 'cannot find module ktx2-encoder/dist/node/index.js.

Just importing like this:

import { encodeToKTX2 } from 'ktx2-encoder'

Also I should mention the dist/node folder only seems to include various basis_encoder files. It was my understanding that is a different format than ktx2 but maybe it's a combined encoder?

@gz65555
Copy link
Owner

gz65555 commented Oct 27, 2024

Thanks, I'll check it.

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

2 participants