Skip to content

Commit 263026a

Browse files
authored
docs: fix syntax errors in readme (#12)
1 parent 24befe1 commit 263026a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ If you are not using any bundlers, the Node.js code doesn't rely on any Vue/Vite
4040

4141
```json
4242
"extends": "@tsconfig/node18/tsconfig.json",
43-
"compilerOptions": [
43+
"compilerOptions": {
4444
"types": ["node"]
45-
]
45+
}
4646
```
4747

4848
Otherwise, if you are trying to use Vue components in Node.js environments (e.g. Server Side Rendering, Vitest, etc.), you will need to extend the Vue TSConfig along with the Node.js TSConfig:
@@ -52,9 +52,9 @@ Otherwise, if you are trying to use Vue components in Node.js environments (e.g.
5252
"@tsconfig/node18/tsconfig.json",
5353
"@vue/tsconfig/tsconfig.json"
5454
],
55-
"compilerOptions": [
55+
"compilerOptions": {
5656
"types": ["node"]
57-
]
57+
}
5858
```
5959

6060
Make sure to place `@vue/tsconfig/tsconfig.json` *after* `@tsconfig/node18/tsconfig.json` so that it takes precedence.

0 commit comments

Comments
 (0)