Fix build errors

This commit is contained in:
Darren Clarke 2023-03-22 07:50:47 +00:00
parent 97b1c3d6ee
commit fb3d574121
6 changed files with 5877 additions and 32824 deletions

View file

@ -18,7 +18,7 @@ export default class LeafcutterDocument extends Document {
}
}
LeafcutterDocument.getInitialProps = async (ctx) => {
LeafcutterDocument.getInitialProps = async (ctx): Promise<any> => {
const originalRenderPage = ctx.renderPage;
const cache = createEmotionCache();
const { extractCriticalToChunks } = createEmotionServer(cache as any);