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
Not working with Vite #12
Comments
Using heic-convert (https://github.com/catdad-experiments/heic-convert) in node.js on a mac m1 or mac intel gives this error:
This occurs at the point of importing heic-convert, which loads
|
Using heic-convert (https://github.com/catdad-experiments/heic-convert) in node.js on a mac m1 or mac intel gives this error: TypeError: Cannot assign to read only property 'stack' of object 'Error: No such file or directory' the package libheif.js vision maybe old, need upadte new vision. I fixed this bug https://github.com/lee-won/heic-convert-plus |
Hi @lee-won, could you please share more details on how you managed to fix this bug? |
I have solved this issue by forking libheif-emscripten.
I hope this helps someone @catdad could you look into upgrading this library to work with libheif v1.17.1? Thanks in advance! |
I've been looking at these changes as they are made to |
@merijnhofsteenge sorry this took a minute. Since the upstream The latest |
Using Next.js this works! Thanks a bunch @catdad 😊 I am using heic-decode, everything works well |
Hello,
I am using
heic-decode
, which underneath seems to be usinglibheif-js
. I am currently using Vite.js for my project. However, upon importing the library, this error pops up in the console, preventing me from using the library:The message on Firefox:
The message on Chrome:
Turning off minification, I was able to narrow down the error to this line in the built
libheif-js
file:However, I am not sure how to fix this. I have been stuck on this issue for a while, so I would appreciate it if someone could take a look!
A reproducible repo with a very simple Vite project is available at https://github.com/Armster15/heic-decode-vite
Thank you for your time.
The text was updated successfully, but these errors were encountered: