Skip to content

Commit

Permalink
docs: fix syntax errors in readme (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
joerick authored May 12, 2023
1 parent 24befe1 commit 263026a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ If you are not using any bundlers, the Node.js code doesn't rely on any Vue/Vite

```json
"extends": "@tsconfig/node18/tsconfig.json",
"compilerOptions": [
"compilerOptions": {
"types": ["node"]
]
}
```

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:
Expand All @@ -52,9 +52,9 @@ Otherwise, if you are trying to use Vue components in Node.js environments (e.g.
"@tsconfig/node18/tsconfig.json",
"@vue/tsconfig/tsconfig.json"
],
"compilerOptions": [
"compilerOptions": {
"types": ["node"]
]
}
```

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

0 comments on commit 263026a

Please sign in to comment.