Skip to content

Start Counter example fails on StackBlitz (linked from Build a Project from Scratch) #7480

@yhoiseth

Description

@yhoiseth

Which project does this relate to?

Router

Describe the bug

On https://tanstack.com/start/latest/docs/framework/react/build-from-scratch, “Here is what that will look like” links to https://stackblitz.com/github/tanstack/router/tree/main/examples/react/start-counter. It seems to build successfully, but shows the error No Start context found in AsyncLocalStorage. Make sure you are using the function within the server runtime.:

Image

Complete minimal reproducer

https://stackblitz.com/github/tanstack/router/tree/main/examples/react/start-counter

Steps to Reproduce the Bug

  1. Visit https://tanstack.com/start/latest/docs/framework/react/build-from-scratch
  2. Click “Here is what that will look like
  3. Wait for the build to finish

Expected behavior

I expected to see the counter, not an error.

Screenshots or Videos

No response

Platform

  • Router / Start Version: ^1.170.8 / ^1.168.11
  • OS: macOS
  • Browser: Brave
  • Browser Version: 1.90.124
  • Bundler: vite
  • Bundler Version: ^8.0.0

Additional context

This issue is not stopping me in any way, just thought I’d help the next guy :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationEverything documentation related

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions