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.:
Complete minimal reproducer#
https://stackblitz.com/github/tanstack/router/tree/main/examples/react/start-counter
Steps to Reproduce the Bug#
- Visit https://tanstack.com/start/latest/docs/framework/react/build-from-scratch
- Click “Here is what that will look like”
- 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 :)
we need to link to codesandbox instead since stackblitz does not support async local storage