Intercepted routes make the app crash in production (Nextjs v13.4.9)
Unanswered
Red-breasted Flycatcher posted this in #help-forum
Red-breasted FlycatcherOP
I have one intercepted route that was implemented according to the instructions in Next.js docs, but it throws (most of the time):
"TypeError: Cannot read properties of undefined (reading '0')
at /var/task/node_modules/next/dist/server/app-render/app-render.js:726:119
at Array.map (<anonymous>)
at /var/task/node_modules/next/dist/server/app-render/app-render.js:723:33
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Promise.all (index 1)
at async walkTreeWithFlightRouterState (/var/task/node_modules/next/dist/server/app-render/app-render.js:696:32)
at async /var/task/node_modules/next/dist/server/app-render/app-render.js:705:34
at async Promise.all (index 0)
at async walkTreeWithFlightRouterState (/var/task/node_modules/next/dist/server/app-render/app-render.js:696:32)
at async generateFlight (/var/task/node_modules/next/dist/server/app-render/app-render.js:740:90) {
page: '/dashboard'
}
RequestId: 2bfdb731-d0f3-4be7-a087-aeb5ed8dbe93 Error: Runtime exited with error: exit status 1
Runtime.ExitError"
Did anyone face the same problem and fixed it?
"TypeError: Cannot read properties of undefined (reading '0')
at /var/task/node_modules/next/dist/server/app-render/app-render.js:726:119
at Array.map (<anonymous>)
at /var/task/node_modules/next/dist/server/app-render/app-render.js:723:33
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Promise.all (index 1)
at async walkTreeWithFlightRouterState (/var/task/node_modules/next/dist/server/app-render/app-render.js:696:32)
at async /var/task/node_modules/next/dist/server/app-render/app-render.js:705:34
at async Promise.all (index 0)
at async walkTreeWithFlightRouterState (/var/task/node_modules/next/dist/server/app-render/app-render.js:696:32)
at async generateFlight (/var/task/node_modules/next/dist/server/app-render/app-render.js:740:90) {
page: '/dashboard'
}
RequestId: 2bfdb731-d0f3-4be7-a087-aeb5ed8dbe93 Error: Runtime exited with error: exit status 1
Runtime.ExitError"
Did anyone face the same problem and fixed it?