How to use custom properties added to a store? #2212
Unanswered
djeikyb
asked this question in
Help and Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
How are you supposed to use the custom properties you add to a store? I get runtime errors saying..
"undefined is not an object" when I do like
and "can't find variable $axios" when I do like this:
Here's a
/plugins/axios.ts
to add a configured $axios to vue as a global property:Then in my
main.ts
:Beta Was this translation helpful? Give feedback.
All reactions