Closed zerosdev closed 1 year ago
Same problem.
If you change the strategy to cookie, it will work. It seems to me that the providers are not loading.
It appears that this error occurs when you haven't defined a scheme for the strategy:
auth: {
strategies: {
laravelSanctum: {
scheme: 'local',
.....
}
I cannot reproduce this error
Environment
Nuxt Config
Reproduction
Upgrade to Nuxt 3.6 with
npx nuxi upgrade --force
Describe the bug
After upgrading to Nuxt 3.6, there an error as shown below
ERROR Cannot start nuxt: Cannot read properties of undefined (reading 'as') 20:28:43
at /C:/laragon/www/xxxxx/xxxx/node_modules/@nuxt-alt/auth/dist/module.mjs:200:31 at Array.filter ()
at setup (/C:/laragon/www/xxxxx/xxxx/node_modules/@nuxt-alt/auth/dist/module.mjs:199:57)
at async normalizedModule (/C:/laragon/www/xxxxx/xxxx/node_modules/@nuxt/kit/dist/index.mjs:2140:17)
at async installModule (/C:/laragon/www/xxxxx/xxxx/node_modules/@nuxt/kit/dist/index.mjs:2409:95)
at async initNuxt (/C:/laragon/www/xxxxx/xxxx/node_modules/nuxt/dist/index.mjs:3174:7)
at async load (/C:/laragon/www/xxxxx/xxxx/node_modules/nuxi/dist/chunks/dev.mjs:204:9)
Additional context
No response
Logs
No response