Using getImage in content collection loader throwing error on build in Astro v5 #13053
Closed
1 task
Labels
needs triage
Issue needs to be triaged
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
I have a getImage function inside my content collection loader to optimize images found in the collection. It worked in v4, but after upgrading to v5 it stopped working and throws this errror when building. (For context when used outside the content config it works)
Example: https://stackblitz.com/edit/github-n5ufjfep?file=src%2Fcontent.config.ts
What's the expected result?
To get an optimized image
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-n5ufjfep
Participation
The text was updated successfully, but these errors were encountered: