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 7ac1d0b commit 2389dc0Copy full SHA for 2389dc0
index.tsx
@@ -101,7 +101,7 @@ export class StaticRouters {
101
"No client-side script found for server-side component: " +
102
serverSide.filePath
103
);
104
- const module = require(serverSide.filePath);
+ const module = await import(serverSide.filePath);
105
this.#cached.add(serverSide.filePath);
106
const result = await module.getServerSideProps?.({
107
params: serverSide.params,
0 commit comments