feathersVuex() from website example not working
See original GitHub issueSteps to reproduce
-
copied code from Setting up project and pasted code into Nuxt
store/
directory in astore/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
]
})
- run
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 function
in the browser with a hanging loader that doesn’t resolve the page.
- Tell us what broke. The more detailed the better.
Page does not resolve or load. Browser console says
feathersVuex
is not a function.
Expected behavior
Page loads with FeathersVuex configuration intact.
Actual behavior
Doesn’t load page and can’t use FeathersVuex
System configuration
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
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Common Patterns | FeathersVuex
Set the idField. If you have a "WTF this isn't working" moment while setting up a new service, make sure you've set the...
Read more >Quasar + Feathers-Vuex: how to integrate? - Stack Overflow
Feathers-Vuex uses a pattern to: promise to authenticate from localStorage/cookies .then( /*start the new Vue() app */ ). I created my app ...
Read more >Getting Started with Realtime Events and Streaming Data (in JS)
In this series, I'll be exploring how to develop an event-driven web applications in Javascript. We'll use Vue on the frontend and ...
Read more >feathers-vuex examples - CodeSandbox
Learn how to use feathers-vuex by viewing and forking feathers-vuex example apps on CodeSandbox.
Read more >Nuxt | FeathersVuex
Working with Auth & Nuxt. feathers-vuex@1.0.0 ships with utilities that help with Nuxt auth related to JSON Web Tokens (JWT). The most important...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Also https://vuex.feathersjs.com/
Thank you!