Skip to content

Typegen for flatRoutes doesn't seem to work #13120

@ZeldOcarina

Description

@ZeldOcarina

I'm using React Router as a...

framework

Reproduction

Clone this repo with npm and run dev or typegen

https://github.com/ZeldOcarina/react-router-auth

System Info

System:
    OS: macOS 15.3.1
    CPU: (12) arm64 Apple M2 Max
    Memory: 4.32 GB / 64.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 22.11.0 - ~/.nvm/versions/node/v22.11.0/bin/node
    Yarn: 1.22.22 - ~/.yarn/bin/yarn
    npm: 10.9.0 - ~/.nvm/versions/node/v22.11.0/bin/npm
    bun: 1.1.39 - ~/.bun/bin/bun
    Watchman: 2025.02.17.00 - /opt/homebrew/bin/watchman
  Browsers:
    Chrome: 133.0.6943.128
    Safari: 18.3
  npmPackages:
    @react-router/dev: ^7.1.5 => 7.1.5 
    @react-router/express: ^7.1.5 => 7.1.5 
    @react-router/fs-routes: ^7.1.5 => 7.1.5 
    @react-router/node: ^7.1.5 => 7.1.5 
    react-router: ^7.1.5 => 7.1.5 
    vite: ^5.4.11 => 5.4.14

Used Package Manager

npm

Expected Behavior

I think the types should be getting in the .react-router/types/app/+types folder but I am not seeing any, only the default root one. Maybe I am missing something?

Actual Behavior

There's no types for the existing routes.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions