kleisauke / wasm-vips

libvips for the browser and Node.js, compiled to WebAssembly with Emscripten.
https://kleisauke.github.io/wasm-vips/
MIT License
463 stars 25 forks source link

Not working on deno deploy #53

Closed divyam234 closed 9 months ago

divyam234 commented 9 months ago
ReferenceError: Worker is not defined
    at Object.nb (https://cdn.jsdelivr.net/npm/wasm-vips/lib/vips-es6.js:102:450)
    at Object.Fc (https://cdn.jsdelivr.net/npm/wasm-vips/lib/vips-es6.js:99:127)
    at Object.init (https://cdn.jsdelivr.net/npm/wasm-vips/lib/vips-es6.js:99:58)
    at https://cdn.jsdelivr.net/npm/wasm-vips/lib/vips-es6.js:348:221
    at file:///src/main.ts:11:20
kleisauke commented 9 months ago

It appears that Deno Deploy doesn't support the Web Workers API, see: https://workers.js.org/#browser-apis

Given that wasm-vips requires this functionality to be available, I'll close this as "won't fix" for now. Please subscribe to https://github.com/denoland/deploy_feedback/issues/171 for updates related to this.