Crashes deploying to Vercel using Next.js 9.5.0/9.5.1
See original GitHub issueBug report
Describe the bug
Getting the following crash deploying to Vercel using Next.js 9.5.0 and 9.5.1. This works as expected using Next.js 9.4.4. Also, 9.5.0 and 9.5.1 work fine locally.
12:06:01.769 | TypeError: Cannot read property 'filter' of undefined
-- | --
12:06:01.769 | at NextScript.getPolyfillScripts (/vercel/5c3be1a5/packages/sh-www/.next/serverless/pages/_error.js:649:26)
12:06:01.769 | at NextScript.render (/vercel/5c3be1a5/packages/sh-www/.next/serverless/pages/_error.js:750:75)
12:06:01.769 | at d (/vercel/5c3be1a5/node_modules/react-dom/cjs/react-dom-server.node.production.min.js:38:231)
12:06:01.769 | at $a (/vercel/5c3be1a5/node_modules/react-dom/cjs/react-dom-server.node.production.min.js:39:16)
12:06:01.769 | at a.b.render (/vercel/5c3be1a5/node_modules/react-dom/cjs/react-dom-server.node.production.min.js:44:476)
12:06:01.770 | at a.b.read (/vercel/5c3be1a5/node_modules/react-dom/cjs/react-dom-server.node.production.min.js:44:18)
12:06:01.770 | at renderToStaticMarkup (/vercel/5c3be1a5/node_modules/react-dom/cjs/react-dom-server.node.production.min.js:54:462)
12:06:01.770 | at renderDocument (/vercel/5c3be1a5/node_modules/next/dist/next-server/server/render.js:3:594)
12:06:01.770 | at renderToHTML (/vercel/5c3be1a5/node_modules/next/dist/next-server/server/render.js:47:72)
12:06:01.770 | at async renderReqToHTML (/vercel/5c3be1a5/packages/sh-www/.next/serverless/pages/_error.js:2188:22)
12:06:01.771 | Error occurred prerendering page "/404". Read more: https://err.sh/next.js/prerender-error
To Reproduce
Deploy to Vercel using Next.js 9.5.0 or 9.5.1
Expected behavior
Deploy succeeds
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
How to Deploy a Next.js Site with Vercel
This guide will show you how to deploy a Next.js site and get your domain set up. Next.js is the React framework created...
Read more >Why does a certain page of my website crash on mobile ...
It gets the page running longer (doesn't crash immediately) but it still crashes after awhile. What else can I do to prevent it...
Read more >Deploy your Next.js application on Vercel using Sentry and ...
In this blog post, we are going to go from bootstrapping a Next.js application to deploying it on Vercel. We will use Github...
Read more >Create a Next.js App & Deploy with Vercel
Create a Next.js app and deploy it in with Vercel (Zeit/Now). Automate your deployments every time you commit a change to Github.
Read more >Unexpected server crash in Next.js. - Vulnerability Database
In order to be affected by this issue, the deployment must use Next.js versions above 11.1.0 and below 12.0.5, Node.js above 15.0.0, and...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for the reproduction it appears this is an edge case with how
next build
is being executed on Vercel which was changed recently, I opened a PR here to correct this.This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.