TanStackT
TanStack2mo ago
5 replies
moderate-tomato

Unable to build with nitro V2 or V3

I am trying to build and deploy start, but no matter what vite.config.ts, it doesn't work after deploying to Railway. Anyone know why?

error: Cannot find module '@tanstack/router-core/ssr/client' from '/app/apps/app/.output/server/chunks/virtual/entry.mjs'
      cause: error: Cannot find module '@tanstack/router-core/ssr/client' from '/app/apps/app/.output/server/chunks/virtual/entry.mjs',
 statusCode: 500,
      fatal: false,
  unhandled: true,
 statusMessage: undefined,
       data: undefined,
      at createError$1 (/app/apps/app/.output/server/index.mjs:628:15)
      at <anonymous> (/app/apps/app/.output/server/index.mjs:1838:21)
      at async b (/app/apps/app/.output/server/index.mjs:583:6947)
      at async C (/app/apps/app/.output/server/index.mjs:583:7230)
626 |     return input;
627 |   }
628 |   const err = new H3Error(input.message ?? input.statusMessage ?? "", {
 623 |     return new H3Error(input);
624 |   }
625 |   if (isError(input)) {
[request error] [unhandled] [GET] http://healthcheck.railway.app/api/healthz
      fatal: false,
  unhandled: true,
                    ^
 statusMessage: undefined,
      at async b (/app/apps/app/.output/server/index.mjs:583:6947)
       data: undefined,
error: Cannot find module '@tanstack/router-core/ssr/client' from '/app/apps/app/.output/server/chunks/virtual/entry.mjs'
      at async C (/app/apps/app/.output/server/index.mjs:583:7230)
      cause: error: Cannot find module '@tanstack/router-core/ssr/client' from '/app/apps/app/.output/server/chunks/virtual/entry.mjs',
 statusCode: 500,
      at createError$1 (/app/apps/app/.output/server/index.mjs:628:15)
      at <anonymous> (/app/apps/app/.output/server/index.mjs:1838:21)
Was this page helpful?