I'm running the initialize function inside another function because if I try running await initializeImageMagick(); at the top level, I get this other error:
error: Top-level await promise never resolved
await initializeImageMagick();
Here's the stack trace:
error: Uncaught (in promise) TypeError: Invalid URL: 'magick.wasm'
at getSerialization (ext:deno_url/00_url.js:98:11)
at new URL (ext:deno_url/00_url.js:405:27)
at new Request (ext:deno_fetch/23_request.js:329:25)
at ext:deno_fetch/26_fetch.js:319:27
at new Promise (<anonymous>)
at fetch (ext:deno_fetch/26_fetch.js:315:18)
at instantiateAsync (https://deno.land/x/imagemagick_deno@0.0.26/src/wasm/magick_native.js:8:7353)
at createWasm (https://deno.land/x/imagemagick_deno@0.0.26/src/wasm/magick_native.js:8:8361)
at https://deno.land/x/imagemagick_deno@0.0.26/src/wasm/magick_native.js:8:146546
at https://deno.land/x/imagemagick_deno@0.0.26/src/image-magick.ts:57:9
Watcher Process failed. Restarting on file change...
The same error happens if I try and perform an actual operation with ImageMagick.
Here's the minimal function which errors:
I'm running the initialize function inside another function because if I try running
await initializeImageMagick();
at the top level, I get this other error:Here's the stack trace:
The same error happens if I try and perform an actual operation with ImageMagick.
Let me know if you need anything else!