Skip to content

Commit e43bdf9

Browse files
docs: update Nuxt 3 installation guide (#865)
1 parent 64fb0ec commit e43bdf9

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

packages/docs/src/guide/installation.md

+5-7
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ import 'floating-vue/dist/style.css'
150150
<code-group>
151151
<code-block title="npm">
152152
```shell
153-
npm i -S floating-vue
153+
npm i floating-vue
154154
```
155155
</code-block>
156156

@@ -161,14 +161,12 @@ yarn add floating-vue
161161
</code-block>
162162
</code-group>
163163

164-
Add the `floating-vue/nuxt` module to your Nuxt config file:
164+
Add the `floating-vue/nuxt` module to your `nuxt.config` file:
165165

166166
```js
167-
import { defineNuxtConfig } from 'nuxt3'
168-
169167
export default defineNuxtConfig({
170-
buildModules: [
171-
'floating-vue/nuxt',
172-
],
168+
modules: [
169+
'floating-vue/nuxt'
170+
]
173171
})
174172
```

0 commit comments

Comments
 (0)