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
{{ message }}
This repository was archived by the owner on Mar 4, 2025. It is now read-only.
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.
The text was updated successfully, but these errors were encountered:
Hi,
After using create-nuxt-app, the Axios has been bootstrapped.
If you are using TypeScript, you need to have
"@nuxtjs/axios"
defined intypes
array incompilerOptions
object of thetsconfig.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.The text was updated successfully, but these errors were encountered: