Skip to content

Commit 2389dc0

Browse files
committed
rollback to use await import
1 parent 7ac1d0b commit 2389dc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export class StaticRouters {
101101
"No client-side script found for server-side component: " +
102102
serverSide.filePath
103103
);
104-
const module = require(serverSide.filePath);
104+
const module = await import(serverSide.filePath);
105105
this.#cached.add(serverSide.filePath);
106106
const result = await module.getServerSideProps?.({
107107
params: serverSide.params,

0 commit comments

Comments
 (0)