You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+21-3Lines changed: 21 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -118,7 +118,7 @@ build({
118
118
119
119
## Setup
120
120
121
-
After installing, **you should run your dev server** (usually `npm run dev`) **to generate the first version of the types**. Then you need to add the types to your `tsconfig.json`:
121
+
After installing, **you should run your dev server** (usually `npm run dev`) **to generate the first version of the types**. Then you need to add the types to your `tsconfig.json`.
122
122
123
123
```json
124
124
{
@@ -129,9 +129,27 @@ After installing, **you should run your dev server** (usually `npm run dev`) **t
129
129
// ...
130
130
"compilerOptions": {
131
131
// ...
132
-
"moduleResolution": "Bundler",
132
+
"moduleResolution": "Bundler"
133
+
// ...
134
+
}
135
+
}
136
+
```
137
+
138
+
Then, if you have an `env.d.ts` file like the one created by `npm vue create <my-project>`, add the `unplugin-vue-router/client` types to it:
If you don't have an `env.d.ts` file, you can create one and add the unplugin-vue-router types to it _or_ you can add them to the `types` property in your `tsconfig.json`:
0 commit comments