Skip to content

Commit 2f8efe0

Browse files
committed
docs: add vuetify peer-dependency install step (#330, #378)
1 parent 4341cbf commit 2f8efe0

2 files changed

Lines changed: 26 additions & 1 deletion

File tree

docs/guide/index.md

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,29 @@ You can also try it online on StackBlitz:
4040

4141
### Existing Project
4242

43-
If you already have a Nuxt project, you can add the module using `nuxt`:
43+
If you already have a Nuxt project, first install `vuetify` — it is a peer dependency, so you choose the major version (Vuetify 3 or 4):
44+
45+
::: code-group
46+
47+
```bash [npm]
48+
npm install -D vuetify
49+
```
50+
51+
```bash [yarn]
52+
yarn add -D vuetify
53+
```
54+
55+
```bash [pnpm]
56+
pnpm add -D vuetify
57+
```
58+
59+
```bash [bun]
60+
bun add -D vuetify
61+
```
62+
63+
:::
64+
65+
Then add the module using `nuxt`:
4466

4567
::: code-group
4668

packages/vuetify-nuxt-module/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,10 @@
5151

5252
> Requires Vite, will not work with Webpack
5353
54+
`vuetify` is a peer dependency (Vuetify 3 or 4) — install it alongside the module:
55+
5456
```bash
57+
npm install -D vuetify
5558
npx nuxt module add vuetify-nuxt-module
5659
```
5760

0 commit comments

Comments
 (0)