RafidMuhymin/astro-imagetools

Sharp error with Astro 1.4.5

Opened this issue · 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