sidebase / nuxt-auth

Authentication built for Nuxt 3! Easily add authentication via OAuth providers, credentials or Email Magic URLs!
https://auth.sidebase.io
MIT License
1.24k stars 161 forks source link

Object literal may only specify known properties, and 'auth' does not exist in type 'InputConfig<NuxtConfig, ConfigLayerMeta>' #595

Open victorlmneves opened 9 months ago

victorlmneves commented 9 months ago

Environment


Reproduction

https://github.com/victorlmneves/nuxt-auth0

Describe the bug

Argument of type '{ devtools: { enabled: false; }; typescript: { shim: false; }; css: string[]; postcss: { plugins: { autoprefixer: {}; }; }; runtimeConfig: { API_KEY: string | undefined; OPC_APIM_KEY: string | undefined; ... 8 more ...; AUTH0_CLIENT_SECRET: string | undefined; }; modules: string[]; auth: { ...; }; }' is not assignable to parameter of type 'InputConfig<NuxtConfig, ConfigLayerMeta>'. Object literal may only specify known properties, and 'auth' does not exist in type 'InputConfig<NuxtConfig, ConfigLayerMeta>'

Additional context

I'm using Nuxt 3.8.0, @sidebase/nuxt-auth 0.6.2 and next-auth 4.2.1

Logs

No response

Richard0528 commented 6 months ago

Same issue here. Follow the get started steps and adding auth to the nuxt.config.ts gives the same error.

devseckobz commented 6 months ago

issue still exist on latest version 0.7.0

gspgsp commented 6 months ago

same issue, there is no version constrains between nuxt-auth and nuxt. the defineNuxtConfig ts has no property named 'auth object', it is simary that, nuxt-v3.6 and nuxt-auth-v6 worked well.