astro-imagetools icon indicating copy to clipboard operation
astro-imagetools copied to clipboard

Sharp error with Astro 1.4.5

Open djmtype opened this issue 1 year ago • 0 comments

In development everything works, but during build I'm getting this error using Astro 1.4.5;

Rollup failed to resolve import "sharp" from "node_modules/astro-imagetools/utils/runtimeChecks.js".
This is most likely unintended because it can break your application at runtime.
If you do want to externalize this module explicitly add it to
`build.rollupOptions.external`

BTW, I'm transforming images from a remote location using GraphQL with fetch

djmtype avatar Oct 08 '22 19:10 djmtype