Skip to content

Property $axios does not exist on type 'CombinedVueInstance plugin nuxt #335

@contrerascoder

Description

@contrerascoder

Version

v2.12.2

Reproduction link

https://github.com/YLT-PROJECT/nuxt-project

Steps to reproduce

  1. Clone repository of reproduction link
  2. Run npm install for installing dependencies
  3. Open Login component and at the login method try to access to $axios property

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 :)

This bug report is available on Nuxt community (#c10506)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions