T
TanStack•3w ago
fascinating-indigo

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.
index.mjs?v=d45e0807:2 Uncaught (in promise) SyntaxError: The requested module '/@fs/Users/jamal/Developer/GitHub/project/node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.0/node_modules/use-sync-external-store/shim/index.js?v=d45e0807' does not provide an export named 'useSyncExternalStore' (at index.mjs?v=d45e0807:2:10)
index.mjs?v=d45e0807:2 Uncaught (in promise) SyntaxError: The requested module '/@fs/Users/jamal/Developer/GitHub/project/node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.0/node_modules/use-sync-external-store/shim/index.js?v=d45e0807' does not provide an export named 'useSyncExternalStore' (at index.mjs?v=d45e0807:2:10)
No description
16 Replies
ambitious-aqua
ambitious-aqua•3w ago
Which specific versions are you using of each package?
constant-blue
constant-blue•3w ago
Are you using Tanstack React Pacer ? Got same yesterday from that package.
fascinating-indigo
fascinating-indigoOP•3w ago
"dependencies": {
"@clerk/tanstack-react-start": "^0.26.9",
"@tanstack/react-query": "^5.90.5",
"@tanstack/react-query-devtools": "^5.90.2",
"@tanstack/react-router": "^1.133.36",
"@tanstack/react-router-with-query": "^1.130.17",
"@tanstack/react-start": "^1.134.0",
"react": "^19.2.0",
"react-dom": "^19.2.0",
"srvx": "0.8.15",
},
"dependencies": {
"@clerk/tanstack-react-start": "^0.26.9",
"@tanstack/react-query": "^5.90.5",
"@tanstack/react-query-devtools": "^5.90.2",
"@tanstack/react-router": "^1.133.36",
"@tanstack/react-router-with-query": "^1.130.17",
"@tanstack/react-start": "^1.134.0",
"react": "^19.2.0",
"react-dom": "^19.2.0",
"srvx": "0.8.15",
},
Here are some of the packages Nope not using pacer
ambitious-aqua
ambitious-aqua•3w ago
can you run this pnpm why use-sync-external-store
fascinating-indigo
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 prune
fascinating-indigo
fascinating-indigoOP•3w ago
No description
fascinating-indigo
fascinating-indigoOP•3w ago
This is the output
ambitious-aqua
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-indigo
fascinating-indigoOP•3w ago
Yes i tried that, i still get the same error did you ever figure out the cause?
fascinating-indigo
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-indigo
fascinating-indigoOP•3w ago
downgrading to "@tanstack/react-start": "^1.134.6", fixed the error for me.
constant-blue
constant-blue•3w ago
I am using 1.134.14 🙂 Need to check again with react pacer
constant-blue
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
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
constant-blue•3w ago
seems like clerk is a common denominator Anyone having any luck besides downgrading to 1.134.6?
fascinating-indigo
fascinating-indigoOP•3w ago
not yet Yeah, might need to report these issues to clerks repo as well

Did you find this page helpful?