You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just found out that if the component doesn't have a prop object the typings work just fine. However, once there's a prop object (even if it's empty) the error above shows up.
Hello,
When I try to return a value from the store inside a computed function like this:
I get this error message:
However, if I first assign it to a variable and then return it, everything works fine:
I create that component with
Vue.extend()
in case that is important.Also, using your 2nd suggestion works fine:
But I don't want to have to import
store
into every component that wants to access it.Is this a bug or am I doing something wrong?
Btw, this is in Vue 2.16.
Thanks!
The text was updated successfully, but these errors were encountered: