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

Fading. 1 report in the last 7 days and 2 the week before.

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 reports
Export 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?

  1. notFound() serves empty HTML10 people

Original reports4, newest first

  1. next build fails prerendering /_global-error with TypeError: Cannot read properties of null (reading 'useContext') (minimal repro)On GitHub#101148
  2. [16.4] next build crashes prerendering /_global-error: Cannot read properties of null (reading 'useContext') — nondeterministicOn GitHub#100708
  3. [16.4] next build crashes prerendering /_global-error: Cannot read properties of null (reading 'useContext') — nondeterministicOn GitHub#100707
  4. next build crashes prerendering /_global-error: Cannot read properties of null (reading 'useContext') — reproduces with a completely bare root layoutOn GitHub#99265

Do you work on Next.js?

Claim its RAP Sheet to see what your users report and answer them in one place.