lumeland / imagemagick-deno

Deno port of the WASM library for ImageMagick
https://deno.land/x/imagemagick_deno
42 stars 3 forks source link

Issue on macos #7

Closed Sn0wAlice closed 1 year ago

Sn0wAlice commented 1 year ago
/Users/alice/Downloads/imagemagick-deno/deno/src/magick-image.ts
Checked 87 files
error: The module's source code could not be parsed: Expected unicode escape at file:///Users/alice/Downloads/imagemagick-deno/deno/src/wasm/magick_native.js:1:1

  \nexport default MagickNative;
  ~
oscarotero commented 1 year ago

I have macos and don't have this problem. Are you able to run this script? https://github.com/lumeland/imagemagick-deno/blob/main/test/test.ts

Sn0wAlice commented 1 year ago

i can't, i have the same error:

error: The module's source code could not be parsed: Expected unicode escape at file:///Users/alice/Downloads/imagemagick-deno/deno/src/wasm/magick_native.js:1:1

  \nexport default MagickNative;
oscarotero commented 1 year ago

Seems like you are importing it from your local filesystem. Can you import it from the deno.land/x repository? https://deno.land/x/imagemagick_deno@0.0.24

Sn0wAlice commented 1 year ago

Ok i found the issue: i wan calling the old initializeImageMagick and not the new initialize function :)

Seems to work now.

Thank you for your help !