@astrojs/image works locally but not on Netlify Edge #5307
Labels
- P3: minor bug
An edge case that only affects very specific usage (priority)
pkg: image
Related to the `@astrojs/image` package (scope)
What version of
astro
are you using?1.6.0
Are you using an SSR adapter? If so, which one?
astrojs/netlify 1.2.0 (targeting edge functions)
What package manager are you using?
npm
What operating system are you using?
Mac
Describe the Bug
Similar issue to #5253. Astro projects that include astro/image seem to fail on deploy, at least when targeting Netlify Edge Functions.
Right after building server entrypoints, it errors out with
Cannot bundle Node.js built-in "node:fs/promises" imported from "node_modules/@astrojs/image/dist/utils/metadata.js". Consider disabling ssr.noExternal or remove the built-in dependency.
Here are the build logs from Netlify:
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-6xnc83?on=stackblitz
Participation
The text was updated successfully, but these errors were encountered: