nuxt-community / auth-module

Zero-boilerplate authentication support for Nuxt 2
https://auth.nuxtjs.org
MIT License
1.93k stars 924 forks source link

I've got error with nuxt v3: Cannot set properties of undefined (setting 'auth') #1719

Open adminoid opened 2 years ago

adminoid commented 2 years ago

Version

module: 5.0.0-1648802546.c9880dc nuxt: ^3.0.0-27467056.93c4dfe

Nuxt configuration

mode:

Nuxt configuration

Reproduction

Cannot set properties of undefined (setting 'auth') at $id_9de234f6 (file://./.nuxt/dist/server/server.mjs:5911:36) at async instantiateModule (file://./.nuxt/dist/server/server.mjs:8876:3)

What is actually happening?

I've got a error when run yarn dev command

Checklist

Steps to reproduce

Just install @nuxtjs/auth-next, run yarn dev and see the error.

ninebolt6 commented 2 years ago

@nuxtjs/auth-next is not compatible with nuxt3. There is a rewrite of this module ongoing. Check this roadmap

FYI: https://github.com/nuxt/framework/discussions/3447#discussioncomment-2476970