From 4ad1c5a2bc3384d0eeaef2d05452748a3a9ae467 Mon Sep 17 00:00:00 2001 From: Lionel Date: Fri, 18 Feb 2022 11:03:27 +0100 Subject: [PATCH] Update wrong code snippet (#34520) Following the [example](https://nextjs.org/docs/advanced-features/custom-document), avoiding the following error: > Identifier 'Document' has already been declared ## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Errors have helpful link attached, see `contributing.md` ## Feature - [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Documentation added - [ ] Telemetry added. In case of a feature if it's used or not. - [ ] Errors have helpful link attached, see `contributing.md` ## Documentation / Examples - [ ] Make sure the linting passes by running `yarn lint` --- 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 (