auth
auth copied to clipboard
Adding this module to Nuxt 3.13 breaks plugin provide types
Environment
- Operating System: Linux
- Node Version: v18.20.3
- Nuxt Version: 3.13.0
- CLI Version: 3.13.1
- Nitro Version: -
- Package Manager: [email protected]
- Builder: -
- User Config: compatibilityDate, modules, devtools, future
- Runtime Modules: @nuxt-alt/[email protected]
- Build Modules: -
Nuxt Config
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
compatibilityDate: '2024-04-03',
modules: ['@nuxt-alt/auth'],
devtools: { enabled: true },
future: {
compatibilityVersion: 4,
},
});
Reproduction
https://stackblitz.com/edit/github-6knne9-jq8rf1?file=app%2Fplugins%2Fhello-object-syntax.ts,app%2Fcomposables%2FuseHello.ts,nuxt.config.ts,package.json
Describe the bug
When this module is enabled, things provided to the nuxt context from plugins are typed as unknown.
Additional context
There is a closed issue about this in the Nuxt repo here.
Logs
No response