-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Property $axios does not exist on type 'CombinedVueInstance plugin nuxt #335
Comments
Hey @contrerascoder , you need to add Then ensure you restart editor after this change :) |
Docs reference: https://axios.nuxtjs.org/setup.html#typescript |
Small remark: this is not automatically configured if you have TS and Axios selected in the create-nuxt-app. |
@lextoc see my PR here: nuxt/create-nuxt-app#449 It's been delayed a long time, throw a +1 on it! |
Im my case, I was missing to use |
Version
v2.12.2
Reproduction link
https://github.com/YLT-PROJECT/nuxt-project
Steps to reproduce
What is expected ?
What is expected is that the editor suggests me the methods of AxiosInstance
What is actually happening?
The VSCode typescript compiler points me that $axios not exists
Additional comments?
I am begining to use typescript in my projects for more ease, but I got stacked always on errors like I comment on this issue
I don't know how can I use .d.ts files to add properties to Vue Components, this could solve me the problem
Please, help :)
The text was updated successfully, but these errors were encountered: