T
TanStack2mo ago
rising-crimson

Failed to resolve dependency: @tanstack/react-store

I've just tried to update to the latest version of TSS following this guide: https://github.com/TanStack/router/discussions/2863 When I start the vite dev server I get:
web dev$ vite dev --port 3000
web dev: please add the vite-react plugin to your Vite config and set 'customViteReactPlugin: true'
web dev: TanStack Start will not configure the vite-react plugin in future anymore.
web dev: Generated route tree in 144ms
web dev: 6:44:44 PM [vite] (client) Re-optimizing dependencies because lockfile has changed
web dev: 6:44:44 PM [vite] (ssr) Re-optimizing dependencies because lockfile has changed
web dev: Failed to resolve dependency: @tanstack/react-store, present in client 'optimizeDeps.include'
web dev: Failed to resolve dependency: @tanstack/react-store, present in ssr 'optimizeDeps.include'
web dev: VITE v6.3.5 ready in 1360 ms
web dev: ➜ Local: http://localhost:3000/
web dev: ➜ Network: use --host to expose
web dev$ vite dev --port 3000
web dev: please add the vite-react plugin to your Vite config and set 'customViteReactPlugin: true'
web dev: TanStack Start will not configure the vite-react plugin in future anymore.
web dev: Generated route tree in 144ms
web dev: 6:44:44 PM [vite] (client) Re-optimizing dependencies because lockfile has changed
web dev: 6:44:44 PM [vite] (ssr) Re-optimizing dependencies because lockfile has changed
web dev: Failed to resolve dependency: @tanstack/react-store, present in client 'optimizeDeps.include'
web dev: Failed to resolve dependency: @tanstack/react-store, present in ssr 'optimizeDeps.include'
web dev: VITE v6.3.5 ready in 1360 ms
web dev: ➜ Local: http://localhost:3000/
web dev: ➜ Network: use --host to expose
The weird messages specifically are:
web dev: Failed to resolve dependency: @tanstack/react-store, present in client 'optimizeDeps.include'
web dev: Failed to resolve dependency: @tanstack/react-store, present in ssr 'optimizeDeps.include'
web dev: Failed to resolve dependency: @tanstack/react-store, present in client 'optimizeDeps.include'
web dev: Failed to resolve dependency: @tanstack/react-store, present in ssr 'optimizeDeps.include'
Before I try to create a repro repo, does anyone know why client and ssr are still visible even though they were removed as part of a step? I've removed all node_modules and .tanstack folders and pnpm install and pnpm dev.
GitHub
Start BETA - Tracking · TanStack router · Discussion #2863
Tracking any important changes for TanStack Start during the BETA period. If you are coming from the ALPHA of TanStack Start, you can see all the breaking changes that were made here - #2403
2 Replies
flat-fuchsia
flat-fuchsia2mo ago
thats just a warning ignore that for now please we'll fix that
rising-crimson
rising-crimsonOP2mo ago
The dev server would later crash with a vite related error that I don't remember. I fixed it by doing the customViteReactPlugin: true thing suggested in the message above. It now works without warnings. 👍

Did you find this page helpful?