Skip to content

@tanstack/start references a function, registerGlobalMiddleware from "@tanstack/react-start", that does not exist. #214

@EverybodyKurts

Description

@EverybodyKurts

Which project does this relate to?

Router

Describe the bug

Generating an app with Sentry integration, using the @tanstack/start cli tool creates src/app/global-middleware.ts file which references a non-existing function, registerGlobalMiddleware.

Module '"@tanstack/react-start"' has no exported member 'registerGlobalMiddleware' 

Your Example Website or App

n/a

Steps to Reproduce the Bug or Issue

  1. pnpm create @tanstack/start@latest
  2. Choose Sentry add-on
  3. Generate the project.
  4. Navigate to src/app/global-middleware.ts

Expected behavior

I expect the the framework's flagship cli tool to generate working code. This version has been released for 5 months.

Screenshots or Videos

Image

Platform

  • Start Version: 1.120.20
  • OS: macOS
  • Browser: n/a
  • Browser Version: n/a
  • Bundler: vite
  • Bundler Version: 7.1.7

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions