feathers-vuex: Cannot read property '_' of undefined

Steps to reproduce

I upgraded my application to feathers 4.3.0. I guessed that I need to update feathers-vuex to 2.0 to support featherjs/authentication-client 4.3.0.

Expected behavior

I tried to add feathers-vuex 2.0 to my QuasarJS project but I have a syntax error.

Actual behavior

Uncaught TypeError: Cannot destructure property `_` of 'undefined' or 'null'.
    at eval (service-module.getters.js?403b:12)
    at Module../node_modules/feathers-vuex/dist/service-module/service-module.getters.js (app.js:5005)

the line is const { _ } = commons

Module Loader: Webpack

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 20 (8 by maintainers)

Most upvoted comments

@MichaelJCole I am using latest version of feathers, feathers-vuex and QuasarJs, all work perfectly. You should simply read this:

https://github.com/feathers-plus/feathers-vuex/pull/216

We are waiting for the official documentation updated according with version 2.0. Finally you can wait for It or alternatively you should contribute 😃

Sure, funny. I’m writing up an article about a starter project I put together integrating Quasar and Feathers with FeathersVuex, and I can’t recommend using your package - it’s unreliable, undocumented, and all over the place.

Luckily, I found a yarn.lock file in git.

@marshallswain @adrianofoschi is there a fix/workaround that doesn’t require upgrading to 2.0?