-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrading astro, astro-storyblok, and netlify adapter results in build error in Netlify (SSR) #5996
Comments
@Princesseuh when we removed Node 14 support did was stop shimming |
No, we still provide those through undici. https://github.com/withastro/astro/blob/main/packages/webapi/src/ponyfill.ts#L74-L78 |
Yeah I looked into this a bit and nothing obvious jumped out, |
The polyfill is applied here: https://github.com/withastro/astro/blob/main/packages/integrations/netlify/src/netlify-functions.ts#L6 I could be a bundling issue where the code using But it could also be caused by something else. |
Confirming that it's a polyfill thing, the reason it worked before is just a coincidence ( We need to figure out a way to include our polyfill at the start of the generated |
Also having this issue, same setup as @SandraRodgers |
What version of
astro
are you using?2.0.0
Are you using an SSR adapter? If so, which one?
Netlify
What package manager are you using?
npm
What operating system are you using?
Mac
Describe the Bug
I updated my project to Astro 2.0. I'm using the netlify adapter for SSR. The dependencies have also been updated:
For netlify builds, Netlify is running Node v16.19.0.
When I run it locally, the site builds fine. In storyblok I can edit and publish and see the updates, both the visual editor and on my localhost.
Previously, it would build fine when I pushed to main (before I upgraded to Astro 2.0)
Now, when I push my updated project to main, the netlify deployment happens. It builds the site, but results in an error.
Attaching screenshot of error and build logs where related warning happens
Link to Minimal Reproducible Example
https://github.com/SandraRodgers/astro-storyblok-example
Participation
The text was updated successfully, but these errors were encountered: