-
Notifications
You must be signed in to change notification settings - Fork 31
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
Swoosh not compatible with NodeJS 18 and being deprecated #6
Comments
I guess you are talking about Squoosh. |
Yes. They said it won't be fixed by them, because it is an issue upstream. I tried your code with NodeJS 18 and the latest Astro, that's how I found the problem. |
Hmm, node 18 is already in LTS so they should be on it though🤔 |
Using sharp solved it. |
ah, node fetch doesn't support file URIs - makes sense |
Astro's image integration uses swoosh by default, which doesn't work with NodeJS 18 (required to run inkdrop-live-export). Also, it was said to being deprecated soon (GoogleChromeLabs/squoosh#1266 (comment)).
I suggest using the optional installation of sharp, as per the guide on the Astro documentation.
The text was updated successfully, but these errors were encountered: