The Nuxt module for Feathers Pinia
npm i feathers-pinia nuxt-feathers-pinia
Open nuxt.config.ts
and add it to the modules
:
// https://v3.nuxtjs.org/api/configuration/nuxt.config
export default defineNuxtConfig({
modules: [
'@pinia/nuxt',
'nuxt-feathers-pinia',
],
// Allows you to put stores and models in their own folders
imports: {
dirs: [
'stores',
'models',
],
},
// Enable Nuxt Takeover Mode: https://nuxt.com/docs/getting-started/installation#prerequisites
typescript: {
shim: false,
},
// optional: https://vuejs.org/guide/extras/reactivity-transform.html
experimental: {
reactivityTransform: true,
},
})
This module provides two features:
The Nuxt development playground seems to be broken as of Jan 1, 2023. Instead of using the playground, use the following instructions:
npm pack
to get a .tgz
file..tgz
file into another project.npm i ./path-to-file.tgz