Skip to content

Deps: upgrade TypeScript from 5 to 7 #287

Closed

Description

@wab

What to build

Upgrade TypeScript from 5.9 to 7. TypeScript 7 is the native compiler: on this repo, tsc takes 1.9 s instead of 6.6 s.

React Router 7 declares a peer range of TypeScript 5 or 6, but it does not import the typescript package: its CLI parses code with Babel, and the types it generates check cleanly under TypeScript 7. So this does not need React Router 8. Expect a pnpm peer warning on @react-router/dev.

A trial on main showed one required config change. TypeScript 7 removes baseUrl, which today also resolves the bare imports @ocobo/styled-system/* and preset. Declare both in paths, next to ~/*. With that change, TypeScript 7 reports no error.

Check that vite-tsconfig-paths still resolves the aliases without baseUrl (build and dev server), and that Panda codegen and the editor setup still work.

Acceptance criteria

  • typescript is on 7.x
  • tsconfig.json has no baseUrl, and paths covers ~/*, @ocobo/styled-system/* and preset
  • pnpm typecheck passes, React Router type generation included
  • pnpm build passes and the dev server resolves the aliases
  • CI is green

Blocked by

None, can start immediately. The earlier dependency on #285 (React Router 8) is dropped: React Router 7 does not load TypeScript.

Activity

  1. added
    ready-for-agentFully specified, AFK-ready for an agent
    and removed
    needs-triageMaintainer needs to evaluate
    on Nov 5, 2026
  2. wab commented on Nov 5, 2026

    @wab
    ContributorAuthor

    Done in #308 (merged as a33b2d3).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ready-for-agentFully specified, AFK-ready for an agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions