-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Description
Which project does this relate to?
Router
Describe the bug
Using TanStack Start/Router 1.161.1 with a direct dependency on @tanstack/store@0.9.1 / @tanstack/react-store@0.9.1 causes a runtime crash during router creation: “Cannot set property state of # which has only a getter”. pnpm why shows Router/Start pulling @tanstack/store@0.8.1 while the app pulls 0.9.1; aligning to 0.8.1 fixes it.
Your Example Website or App
No reproduction URL yet.
Steps to Reproduce the Bug or Issue
- Create a TanStack Start 1.161.1 app (vite 7.3.1).
- Add direct dependencies @tanstack/store@0.9.1 and @tanstack/react-store@0.9.1 in the app.
- Ensure router/start bring @tanstack/store@0.8.1 (e.g. via @tanstack/react-start@1.161.1).
- Start the app and instantiate the router (createRouter).
- Observe runtime error.
Expected behavior
Router should initialize without crashing even if app depends on a newer @tanstack/store (or the dependency tree should be de-duplicated/compatible).
Screenshots or Videos
N/A
Platform
- Router / Start Version: 1.161.1
- OS: macOS
- Browser: Chrome
- Browser Version: Unknown
- Bundler: vite
- Bundler Version: 7.3.1
Additional context
pnpm why @tanstack/store shows @tanstack/store@0.8.1 required by Router/Start, while the app uses 0.9.1. Forcing everything to 0.8.1 via overrides resolves the crash.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels