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

Deno fails with "NotSupported: Classic workers are not supported." #42

Open
jamsinclair opened this issue Nov 21, 2023 · 1 comment
Open
Assignees
Labels
bug Something isn't working

Comments

@jamsinclair
Copy link
Owner

Describe the bug
Using a multi-threaded supported module fails with:

NotSupported: Classic workers are not supported.

Reproduction

import encode from '@jsquash/avif/encode';

await encode(new ImageData(new Uint8ClampedArray(4 * 50 * 50), 50, 50));

Expected behavior
Should work without additional configuration.

@jamsinclair jamsinclair added the bug Something isn't working label Nov 21, 2023
@jamsinclair jamsinclair self-assigned this Nov 21, 2023
@jamsinclair
Copy link
Owner Author

Looks like this may be solved by emscripten-core/emscripten#20452 and emscripten-core/emscripten#20513 – newer versions of emscripten will compile workers with { type: 'module' } 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant