Skip to content

Commit def0258

Browse files
committed
update: Annotate dynamic import for NextTopLoader
1 parent 74b2f91 commit def0258

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/web/src/app/providers.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { Toaster } from "react-hot-toast";
88

99
// Dynamically import NextTopLoader to avoid issues during static generation
1010
const NextTopLoader = dynamic(
11-
() => import("nextjs-toploader").then((mod) => mod.default),
11+
() => import("nextjs-toploader") as Promise<{ default: React.ComponentType }>,
1212
{ ssr: false }
1313
);
1414

0 commit comments

Comments
 (0)