Skip to content

Vercel integration doesn't work with nested routes #13254

@termosa

Description

@termosa

Vercel cannot deploy the output of RR v7 build when used with nested routes.

I'm using React Router as a framework.

Reproduction

// app/routes.ts
import { type RouteConfig, index, route } from "@react-router/dev/routes";

export default [
  route("/", "routes/Application.tsx", [
    index("routes/Home.tsx"),
  ] satisfies RouteConfig),
];

System Info

https://vercel.com/changelog/support-for-react-router-v7

Used Package Manager

npm

Expected Behavior

App will be built and deployed

Actual Behavior

App is built but Vercel couldn't deploy it.
It fails when collecting resources from /vercel/output with "unexpected error".

Build Completed in /vercel/output [27s]
Deploying outputs...
An unexpected error happened when running this build. We have been notified of the problem. If you have any questions, please contact Vercel Support https://vercel.com/help

I have asked Vercel to expose more details on the problem recently.
I will add them here if I have any, but wouldn't expect that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions