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.
1 parent de9a786 commit 81629d5Copy full SHA for 81629d5
src/components/DevTools.tsx
@@ -15,9 +15,13 @@ import getStartedStyle from "./GetStarted.module.css"
15
import styles from "./DevTools.module.css"
16
import ClipBoard from "./ClipBoard"
17
import dynamic from "next/dynamic"
18
+import type { DevtoolUIProps } from "@hookform/devtools/dist/devToolUI"
19
-const DevTool = dynamic(
20
- () => import("@hookform/devtools").then((mod) => mod.DevTool),
+const DevTool = dynamic<DevtoolUIProps>(
21
+ () =>
22
+ import("@hookform/devtools/dist/index.cjs.development").then(
23
+ (mod) => mod.DevTool
24
+ ),
25
{
26
ssr: false,
27
}
0 commit comments