Seeing this SSR issue trying to deploy to vercel tonight. On version 1.131.28
I thought SSR was on by default?
TypeError: Cannot set properties of undefined (setting 'ssr')
at attachRouterServerSsrUtils (file:///var/task/node_modules/.nitro/@tanstack/router-core@1.132.47/dist/esm/ssr/ssr-server.js:32:14)
... 7 lines matching cause stack trace ...
at async Server.<anonymous> (/opt/rust/nodejs.js:16:7788) {
cause: TypeError: Cannot set properties of undefined (setting 'ssr')
at attachRouterServerSsrUtils (file:///var/task/nodemodules/.nitro/@tanstack/router-core@1.132.47/dist/esm/ssr/ssr-server.js:32:14)
at file:///var/task/chunks//ssr.mjs:1435:13
at process.processTicksAndRejections (node:internal/process/taskqueues:105:5)
at async file:///var/task/chunks//ssr.mjs:1459:34
at async startRequestResolver (file:///var/task/chunks/_/ssr.mjs:1381:24)
at async Object.handler (file:///var/task/index.mjs:1531:19)
at async toNodeHandle (file:///var/task/index.mjs:1802:7)
at async Server.r (/opt/rust/nodejs.js:2:15569)
at async Server.<anonymous> (/opt/rust/nodejs.js:16:7788),
statusCode: 500,
fatal: false,
unhandled: true,
statusMessage: undefined,
data: undefined
1 Reply
flat-fuchsia•2h ago
You said the version was 1.131.28 but router-core in the error trace says 1.132.47. make sure your either on 131 or 132 in the package.json and reinstall. rm your node modules if you need to.
If you still have issues, could you paste in your package.json?