question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

feathersVuex() from website example not working

See original GitHub issue

Steps to reproduce

  1. copied code from Setting up project and pasted code into Nuxt store/ directory in a store/feathers-client.js file.

  2. 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
  ]
})
  1. run npm run dev and get no errors in my terminal, but I get a webpack-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:closed
  • Created 4 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
marshallswaincommented, Dec 10, 2019
1reaction
marshallswaincommented, Nov 14, 2019

Thank you!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found