Denoder / nuxt-module-alternatives

Alternative modules to use while waiting for Nuxt 3 Compatibility
MIT License
144 stars 14 forks source link

On ctx (NuxtApp) $axios type is not found #124

Closed ttonyh closed 1 year ago

ttonyh commented 2 years ago

Environment

Nuxt Config

export default defineNuxtConfig({ typescript: { shim: false }, modules: [ // v2 stack compatibility '@nuxtjs-alt/auth', '@nuxtjs-alt/axios', '@pinia/nuxt',

    // General Modules
    '@nuxtjs/color-mode',
    '@nuxtjs/robots'
]

});

Reproduction

https://stackblitz.com/edit/github-vgxjko

I was not able to get typescript autocomplete to work in Stackblitz.

Describe the bug

Although $auth is recognized on Nuxt context "ctx = NuxtApp()", for some reason "$axios" is not. Both are installed in my app.

Additional context

No response

Logs

No response

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.