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.

Cannot read property '_' of undefined

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:20 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
adrianofoschicommented, Sep 10, 2019

@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 😃

1reaction
MichaelJColecommented, Sep 10, 2019

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Resolving TypeError: Cannot Read Property of Undefined ...
What Causes TypeError: Cannot Read Property of Undefined. Undefined means that a variable has been declared but has not been assigned a value....
Read more >
Uncaught TypeError: Cannot read property of undefined In
JavaScript TypeError is thrown when an operand or argument passed to a function is incompatible with the type expected by that operator or...
Read more >
[Solved] Cannot read Properties of Undefined in JavaScript
The "Cannot read properties of undefined" error occurs when you try to access a property or a method on a variable that stores...
Read more >
Uncaught TypeError : Cannot read properties of undefined
The error clearly says that it is Undefined, which means the variable might be declared or used. Still, there is no value associated...
Read more >
Fix: “Cannot Read Property of Undefined” Error in JavaScript
To fix the “cannot read property of undefined” error, use the optional chaining operator on the variable before accessing a property.
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