Tanstack start useSyncExternalStore error in dev
Im getting this strange error when trying to run my application in dev. When i build and run the vite preview it works normally. Im not sure what caused this. I tired to clear my node_modules but it didnt help.

16 Replies
ambitious-aqua•3w ago
Which specific versions are you using of each package?
constant-blue•3w ago
Are you using Tanstack React Pacer ? Got same yesterday from that package.
fascinating-indigoOP•3w ago
Here are some of the packages
Nope not using pacer
ambitious-aqua•3w ago
can you run this
pnpm why use-sync-external-store
fascinating-indigoOP•3w ago
Okay i will try that. Whats strange is my codebase was working normally before all this. I think things started acting weird when i ran
pnpm prunefascinating-indigoOP•3w ago

fascinating-indigoOP•3w ago
This is the output
ambitious-aqua•3w ago
those versions all look fine, i know you said you tried clearing node modules, have you tried clearing both node modules along with the pnpm.lock file and then running pnpm install to get a full clean install of packages
fascinating-indigoOP•3w ago
Yes i tried that, i still get the same error
did you ever figure out the cause?
fascinating-indigoOP•3w ago
Update: After doing some digging, it seems this is an issue with recent updated in tanstack start https://github.com/TanStack/router/issues/5717
GitHub
@tanstack/react-start v1.134.7 causes import error with use-sync-ex...
Which project does this relate to? Start Describe the bug When I upgrade to to v1.134.7 of @tanstack/react-start, I get a runtime error if I view a react component that imports tanstack-store. I pe...
fascinating-indigoOP•3w ago
downgrading to
"@tanstack/react-start": "^1.134.6", fixed the error for me.constant-blue•3w ago
I am using 1.134.14 🙂 Need to check again with react pacer
constant-blue•3w ago
yeah Im in this weird balancing act of 1.134.6 fixing the
useSyncExternalStore issue, but then introduces a different issue of Server function info not found for....constant-blue•3w ago
GitHub
Some server-side modules incorrectly bundled into the client? · Is...
Which project does this relate to? Start Describe the bug Starting with @tanstack/react-start@1.134.7, I think server-side modules are being incorrectly bundled into the client bundle. For example,...
constant-blue•3w ago
seems like clerk is a common denominator
Anyone having any luck besides downgrading to 1.134.6?
fascinating-indigoOP•3w ago
not yet
Yeah, might need to report these issues to clerks repo as well