Next.js "Cannot read properties of undefined (reading 'length')" in installChunk: two processes share .next
A Next.js 15 dev server returned 500 with "TypeError: Cannot read properties of undefined (reading 'length')" from a generated page.js. The code at fault was webpack's installChunk: a second Next process, here a coding agent's build and dev server, was writing into the same .next directory.
·4 mins