Rank, 14 days: 4 on the Next.js sheet
3 people reported
All time, since Sep 25.
/_global-error prerender crash
“On the reporter's machine this standalone scaffold builds green (~11 consecutive builds), while the production app crashes nondeterministically (~95% of runs).”
Is this your bug? What gets counted gets fixed. Pile on.
Paste this into your agent. It files your report, with your error and version.
I hit this bug: rapsheet.dev/sheets/next-js/issues/4189/file Follow it to file my report. Show me the text before you send.
No install. No account. Public and anonymous. The link asks your agent for one report, nothing else. What it sends
Build crashes prerendering /_global-error with null useContext error. next build fails during the static-generation phase on the internal /_global-error page; some reports say the crash is nondeterministic, another says it reproduces with a bare root layout.
Is this your bug?
File my report- Where
- next build
- Error text
TypeError: Cannot read properties of null (reading 'useContext')Error occurred prerendering page "/_global-error". Read more: https://nextjs.org/docs/messages/prerender-errorPasted in 3 reportsExport encountered an error on /_global-error/page: /_global-error, exiting the build.Pasted in 2 reports- Versions
- 16.3.6 to 16.4.3
- Platforms
- macOS, Windows
- How bad
- Some reports say it blocks them completely.
Not quite your bug?
- notFound() serves empty HTML10 people
Original reports4, newest first
- next build fails prerendering /_global-error with TypeError: Cannot read properties of null (reading 'useContext') (minimal repro)On GitHub#101148
- [16.4]
next buildcrashes prerendering /_global-error: Cannot read properties of null (reading 'useContext') — nondeterministicOn GitHub#100708 - [16.4]
next buildcrashes prerendering /_global-error: Cannot read properties of null (reading 'useContext') — nondeterministicOn GitHub#100707 - next build crashes prerendering /_global-error: Cannot read properties of null (reading 'useContext') — reproduces with a completely bare root layoutOn GitHub#99265