copied code from Setting up project and pasted code into Nuxt store/ directory in a store/feathers-client.js file.
Configured store with code below
// src/store/store.js
import Vue from 'vue'
import Vuex from 'vuex'
import { FeathersVuex } from './feathers-client'
// Services
import BudgetFeature from './services/budgetFeature'
import BudgetField from './services/budgetField'
import CapMapFields from './services/capMapFields'
import PhaseListFeature from './services/phaseListFeature'
Vue.use(Vuex)
Vue.use(FeathersVuex)
export default new Vuex.Store({
plugins: [
BudgetFeature,
BudgetField,
CapMapFields,
PhaseListFeature
]
})
npm run dev and get no errors in my terminal, but I get awebpack-internal:///./store/feathers-client.js:22 Uncaught TypeError: feathersVuex is not a functionfeathersVuex is not a function.Page loads with FeathersVuex configuration intact.
Doesn't load page and can't use FeathersVuex
Module versions (especially the part that's not working):
"feathers-vuex": "^2.0.5",
NodeJS version:
11.10.0
Operating System:
Windows 10
Browser Version:
Chrome Version 78.0.3904.87
Module Loader:
Nuxt/Webpack
There are too many possible variables for me to debug this. If you'll provide a repo that I can pull down and try, I'll see what I can do.
I think the issue is this:
import { FeathersVuex } from './feathers-client'
FeathersVuex is exported as defualt so it should be:
import FeathersVuex from './feathers-client'
Ah. That led me to see the problem. I'm not exporting FeathersVuex from the feathers-client.js file. I've updated the documentation.
Thank you!
https://feathers-vuex.netlify.com/
works on
yeah cool try to update in https://feathers-plus.github.io/ in frameworks under feathers-vuex @marshallswain