diff --git a/infinite/index.ts b/infinite/index.ts index 1f8fd4a61..9a5b55bfa 100644 --- a/infinite/index.ts +++ b/infinite/index.ts @@ -27,7 +27,7 @@ import type { SWRInfiniteFetcher, SWRInfiniteCacheValue } from './types' -import { useSyncExternalStore } from 'use-sync-external-store/shim' +import { useSyncExternalStore } from 'use-sync-external-store/shim/index.js' const INFINITE_PREFIX = '$inf$'