This is a minimal reproduction for: vercel/next.js#51482 (comment)
To reproduce:
- Git clone,
yarn install
yarn next build
- Run standalone:
node .next/standalone/server.js
- Open http://localhost:3000 in browser
It should show an error page and the CLI should show the error "TypeError: Cannot read properties of null (reading 'useContext')".