Skip to content

Commit 84bf954

Browse files
authored
typo: change _document to document
* fix(snippet,nextjs-document): fixed import from next/document * docs(readme,nextjs,typescript,document): update readme to fix typo in snippet typo fixed in earlier commit
1 parent 813e985 commit 84bf954

File tree

4 files changed

+745
-702
lines changed

4 files changed

+745
-702
lines changed

packages/vscode/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122
4. `ncdoc` (Next Custom Document)
123123

124124
```jsx
125-
import Document, { Html, Main, NextScript } from "next/_document";
125+
import Document, { Html, Main, NextScript } from "next/document";
126126
const Document: Document = () => {
127127
return (
128128
<Html lang="en">
@@ -209,7 +209,7 @@
209209
7. `ncdoct`(Next Custom Document Typescript)
210210

211211
```tsx
212-
import Document, { Html, Main, NextScript } from "next/_document";
212+
import Document, { Html, Main, NextScript } from "next/document";
213213
const Document: Document = () => {
214214
return (
215215
<Html lang="en">

packages/vscode/snippets/next-javascript.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"ncdoc": {
5050
"prefix": "ncdoc",
5151
"body": [
52-
"import { Html, Main, NextScript } from \"next/_document\";",
52+
"import { Html, Main, NextScript } from \"next/document\";",
5353
"",
5454
"const Document = () => {",
5555
" return (",

packages/vscode/snippets/next-typescript.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
"ncdoct": {
9999
"prefix": "ncdoct",
100100
"body": [
101-
"import Document, { Html, Main, NextScript } from \"next/_document\";",
101+
"import Document, { Html, Main, NextScript } from \"next/document\";",
102102
"",
103103
"const Document: Document = () => {",
104104
" return (",

0 commit comments

Comments
 (0)