We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0c54727 + bcf4b0b commit b83792aCopy full SHA for b83792a
.changeset/strange-beans-attend.md
@@ -0,0 +1,5 @@
1
+---
2
+"@preact/signals-react": patch
3
4
+
5
+Fix ERR_UNSUPPORTED_DIR_IMPORT error when importing `use-sync-external-store/shim` from ESM build
packages/react/src/index.ts
@@ -8,7 +8,7 @@ import {
8
import React from "react";
9
import jsxRuntime from "react/jsx-runtime";
10
import jsxRuntimeDev from "react/jsx-dev-runtime";
11
-import { useSyncExternalStore } from "use-sync-external-store/shim";
+import { useSyncExternalStore } from "use-sync-external-store/shim/index.js";
12
import {
13
signal,
14
computed,
0 commit comments