I was trying to use the getPicture helper function to render responsive pages in my React components, which for some reason didn't work on Vercel. Then I tried doing the same thing but without React components and it still didn't work.
Using <Picture /> does not work either. I have a working project on Vercel so I tried downgrading my packages to the version from that project but that didn't work either.
What version of
astro
are you using?1.6.12
Are you using an SSR adapter? If so, which one?
Vercel
What package manager are you using?
yarn
What operating system are you using?
Windows
Describe the Bug
I was trying to use the
getPicture
helper function to render responsive pages in my React components, which for some reason didn't work on Vercel. Then I tried doing the same thing but without React components and it still didn't work. Using<Picture />
does not work either. I have a working project on Vercel so I tried downgrading my packages to the version from that project but that didn't work either.This is what I've done to reproduce the bug. Everything works in dev but when deployed it just shows this:
And then this error shows in my vercel functions tab:
Link to Minimal Reproducible Example
https://github.com/savicaleksa/interstellar-lion
Participation