Skip to content

No HTTPEvent found in AsyncLocalStorage #4408

@elvc

Description

@elvc

Which project does this relate to?

Start

Describe the bug

I ran into the following bug after following the "devinxi" guide and upgrading the packages to the following version.

    "@tanstack/react-query": "^5.80.7",
    "@tanstack/react-query-devtools": "^5.80.7",
    "@tanstack/react-router": "^1.121.2",
    "@tanstack/react-router-devtools": "^1.121.5",
    "@tanstack/react-router-with-query": "^1.121.2",
    "@tanstack/react-start": "^1.121.7",

After double checking the official examples, I noticed that they are also having the same issues:

Running the official Start Clerk Basic example in Stackblitz results in an immediate crash when starting the dev server. The error appears to originate from the TanStack Start server runtime.

It seems to happen in other Examples as well such as Start Basic React Query

Your Example Website or App

https://stackblitz.com/github/tanstack/router/tree/main/examples/react/start-clerk-basic?embed=1&theme=dark&preset=node&file=src/routes/__root.tsx

Steps to Reproduce the Bug or Issue

  1. Open the official Start Clerk Basic example in Stackblitz or clone the repo
  2. Run npm install
  3. Run npm run dev
  4. Navigate to http://localhost:3000/
  5. App crashes and error messages in the terminal as seen in screenshot (No HTTPEvent found in AsyncLocalStorage)

Expected behavior

The application should launch without runtime errors and render the homepage with Clerk authentication integration.

Screenshots or Videos

Image

Platform

  • OS: [e.g. macOS, Windows, Linux]
  • Browser: [e.g. Chrome, Safari, Firefox]
  • Version: [e.g. 91.1]

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