Skip to content

Commit

Permalink
🐛 #170 React18に上げたタイミングで型定義エラーが出るようになってしまったので以下を参考に修正
Browse files Browse the repository at this point in the history
  • Loading branch information
keitakn committed May 4, 2022
1 parent 58a3ded commit 63c85e6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/pages/_document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ export default class CustomDocument extends Document {

return {
...initialProps,
styles: (
<>
styles: [
<React.Fragment key="1">
{initialProps.styles}
{sheet.getStyleElement()}
</>
),
</React.Fragment>,
],
};
} finally {
sheet.seal();
Expand Down

0 comments on commit 63c85e6

Please sign in to comment.