Skip to content

React router types in rootAuthLoader callback function not working on newest release #6012

@lasseklovstad

Description

@lasseklovstad

Preliminary Checks

Reproduction

https://github.com/lasseklovstad/bug-clerk-rootloader-types

Publishable key

.

Description

Steps to reproduce:

  1. install the latest libraries from react-router and clerk
  2. try using the callback function in rootAuthLoader

Expected behavior:

The types in the callback function is correct

Actual behavior:

The types are any

Image

Environment

System:
    OS: Windows 11 10.0.26100
    CPU: (12) x64 Intel(R) Core(TM) i7-10850H CPU @ 2.70GHz
    Memory: 12.68 GB / 31.78 GB
  Binaries:
    Node: 22.13.1 - C:\Program Files\nodejs\node.EXE
    npm: 10.9.2 - C:\Program Files\nodejs\npm.CMD
    pnpm: 10.2.1 - C:\Program Files\nodejs\pnpm.CMD
    bun: 1.2.2 - ~\.bun\bin\bun.EXE
  Browsers:
    Edge: Chromium (134.0.3124.51)
    Internet Explorer: 11.0.26100.1882
  npmPackages:
    @clerk/react-router: ^1.4.6 => 1.4.6
    @react-router/dev: ^7.5.3 => 7.6.1
    @react-router/node: ^7.5.3 => 7.6.1
    @react-router/serve: ^7.5.3 => 7.6.1
    @tailwindcss/vite: ^4.1.4 => 4.1.7
    @types/node: ^20 => 20.17.50
    @types/react: ^19.1.2 => 19.1.5
    @types/react-dom: ^19.1.2 => 19.1.5
    isbot: ^5.1.27 => 5.1.28
    react: ^19.1.0 => 19.1.0
    react-dom: ^19.1.0 => 19.1.0
    react-router: ^7.5.3 => 7.6.1
    tailwindcss: ^4.1.4 => 4.1.7
    typescript: ^5.8.3 => 5.8.3
    vite: ^6.3.3 => 6.3.5
    vite-tsconfig-paths: ^5.1.4 => 5.1.4

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions