create-nuxt-app
create-nuxt-app copied to clipboard
@nuxtjs/axios not in types tsconfig.json
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.
Agreed. Following this pattern would be good: https://github.com/nuxt/create-nuxt-app/pull/688
v3.5.0 has been published
Is this implemented?
Sorry, I thought it's @nuxt/content