Array.prototype.toReversed() works at runtime but not build
I have an Astro project that uses
toReversed()
on a json import, this works fine on SSR pages but fails saying that the function is not defined during build on an SSG page.2 Replies
Sounds like you need a higher node version, if you set an env var
NODE_VERSION: 20
does it work?that worked! tysm