T
TanStack2mo ago
passive-yellow

`Uncaught (in promise) SyntaxError 'useSyncExternalStore'

Just upgraded react-start to 1.131.7 and I keep getting this following error:
Uncaught (in promise) SyntaxError: The requested module '/node_modules/use-sync-external-store/shim/index.js?v=1a8aa761' does not provide an export named 'useSyncExternalStore'
Uncaught (in promise) SyntaxError: The requested module '/node_modules/use-sync-external-store/shim/index.js?v=1a8aa761' does not provide an export named 'useSyncExternalStore'
3 Replies
passive-yellow
passive-yellowOP2mo ago
installed use-sync-external-store, but it doesn't seem to resolve the issue
inland-turquoise
inland-turquoise2mo ago
Pretty sure you should be importing that from react ie: import { useSyncExternalStore } from "react";
fair-rose
fair-rose2mo ago
this should be working out of the box can you please provide a complete reproducer project ?

Did you find this page helpful?