Tanstack start error 500 in deployed app

While my app is working correctly locally, and there is any error during the deployment process, when I’m trying to visit my app, I got this error:

Dec 8, 07:06:38 PM: 38dafe6b ERROR  TypeError: Cannot read properties of undefined (reading 'getRouter')
    at getRouter2 (file:///var/task/apps/grid/.netlify/v1/functions/server.mjs:16356:58)
    at async handleServerRoutes (file:///var/task/apps/grid/.netlify/v1/functions/server.mjs:16530:19)
    at async file:///var/task/apps/grid/.netlify/v1/functions/server.mjs:16442:35 {
  cause: TypeError: Cannot read properties of undefined (reading 'getRouter')
      at getRouter2 (file:///var/task/apps/grid/.netlify/v1/functions/server.mjs:16356:58)
      at async handleServerRoutes (file:///var/task/apps/grid/.netlify/v1/functions/server.mjs:16530:19)
      at async file:///var/task/apps/grid/.netlify/v1/functions/server.mjs:16442:35,
  status: 500,
  statusText: undefined,
  headers: undefined,
  data: undefined,
  body: undefined,
  unhandled: true
}

Also one other error that I saw searching at the logs

Error: Dynamic require of "node-web-audio-api" is not supported

This is the project: blibliki/apps/grid at main · mikezaby/blibliki · GitHub

This is my app in netlify: https://blibliki-staging.netlify.app/

I checked your website now and it appears to be working. Have you resolved the issue?

@hrishikesh

I have the same error for https://elit-klinik-sarnic.netlify.app/

This is the error:

**Jan 9, 04:59:56 PM:** 3c3277a8 ERROR  TypeError: Cannot read properties of undefined (reading 'getRouter')
    at getRouter2 (file:///var/task/.netlify/v1/functions/server.mjs:8063:58)
    at async handleServerRoutes (file:///var/task/.netlify/v1/functions/server.mjs:8237:19)
    at async file:///var/task/.netlify/v1/functions/server.mjs:8149:35 {
  cause: TypeError: Cannot read properties of undefined (reading 'getRouter')
      at getRouter2 (file:///var/task/.netlify/v1/functions/server.mjs:8063:58)
      at async handleServerRoutes (file:///var/task/.netlify/v1/functions/server.mjs:8237:19)
      at async file:///var/task/.netlify/v1/functions/server.mjs:8149:35,
  status: 500,
  statusText: undefined,
  headers: undefined,
  data: undefined,
  body: undefined,
  unhandled: true
}