Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

@nuxtjs/axios not in types tsconfig.json #690

Closed
dawidstefaniak opened this issue Jan 16, 2021 · 4 comments · Fixed by #691
Closed

@nuxtjs/axios not in types tsconfig.json #690

dawidstefaniak opened this issue Jan 16, 2021 · 4 comments · Fixed by #691

Comments

@dawidstefaniak
Copy link

Hi,
After using create-nuxt-app, the Axios has been bootstrapped.

If you are using TypeScript, you need to have "@nuxtjs/axios" defined in types array in compilerOptions object of the tsconfig.json. If you don't do it, the compiler shows you error, that "$axios is not defined on type Context".

I propose adding "@nuxtjs/axios" to types by default to not get this error.

@danielroe
Copy link
Member

Agreed. Following this pattern would be good: #688

@clarkdo
Copy link
Member

clarkdo commented Jan 17, 2021

v3.5.0 has been published

@clarkdo clarkdo closed this as completed Jan 17, 2021
@danielroe
Copy link
Member

Is this implemented?

@clarkdo
Copy link
Member

clarkdo commented Jan 17, 2021

Sorry, I thought it's @nuxt/content

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants