From 733843268b008e48b6e2fadf1e4e314269fc05b0 Mon Sep 17 00:00:00 2001 From: Lionel Date: Fri, 18 Feb 2022 10:55:25 +0100 Subject: [PATCH] Update wrong code snippet Following the [example](https://nextjs.org/docs/advanced-features/custom-document), avoiding the following error: > Identifier 'Document' has already been declared --- errors/no-stylesheets-in-head-component.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/errors/no-stylesheets-in-head-component.md b/errors/no-stylesheets-in-head-component.md index 3e3901a682dd..319cae672bfe 100644 --- a/errors/no-stylesheets-in-head-component.md +++ b/errors/no-stylesheets-in-head-component.md @@ -18,7 +18,7 @@ Add the stylesheet in a custom `Document` component. ```jsx // pages/_document.js -import Document, { Html, Head, Main, NextScript } from 'next/document' +import { Html, Head, Main, NextScript } from 'next/document' export default function Document() { return (