npm install @pinia/nuxt
```
-We supply a _module_ to handle everything for you, you only need to add it to `buildModules` in your `nuxt.config.js` file:
+We supply a _module_ to handle everything for you, you only need to add it to `modules` in your `nuxt.config.js` file:
```js
// nuxt.config.js
```js
// nuxt.config.js
-export default {
+export default defineNuxtConfig({
// ... other options
- buildModules: [
+ modules: [
// ...
[
'@pinia/nuxt',
},
],
],
-}
+})
```
## Nuxt 2 without bridge