Latest Astro Compress creates build error when using Astro Image and Sharp
djmtype opened this issue · comments
Previously, I was using astro-compress 1.1.35, then updated to 1.1.42. Now when building my project, I get this error:
Waiting for the @astrojs/image integration...
error VipsOperation: class "heifsave_buffer" not found
If I remove sharp from my project, it will build out. But, the same can be said if I remove astro-compress instead of sharp. BTW my project isn't utilizing astro-compress image compression.
Astro Image can't be used with sharp 0.32.1 due to unmet peer dependencies, so I'm still using sharp 0.31.3.
integrations: [
image({
serviceEntryPoint: "@astrojs/image/sharp",
logLevel: "error",
}),
compress({
css: false,
html: true,
img: false,
js: false,
svg: true,
logger: 2,
}),
]
For now, this works:
"astro": "2.3.2",
"@astrojs/image": "^0.16.6",
"astro-compress": "1.1.35",
"sharp": "^0.31.0"
I think it's just tech messing with me. Seems to build fine this morning on Netlify using Astro as SSG.
"astro": "2.3.2",
"@astrojs/image": "^0.16.6",
"astro-compress": "^1.1.42",
"sharp": "^0.31.0"