Nuxt 3 + Supabase build failure
When I try to build either locally or as part of Cloudflare deployment, I get the following error:
Nuxt Build Error: [commonjs--resolver] Missing "./client" specifier in "@ nuxtjs/supabase" package
'npm run dev' works fine, and I have no problems accessing Supabase from the SPA. I am using OAuth2.
nuxt.config.ts includes @ nuxtjs/supabase in the list of modules, and has this:
supabase: {
redirect: true,
redirectOptions: {
login: '/join',
callback: '/confirm-auth',
cookieRedirect: true,
exclude: ['/', '/join', '/confirm-auth'],
},
cookieName: 'won-token',
cookieOptions: {
maxAge: 60 * 60 * 8,
sameSite: 'lax',
secure: true
},
clientOptions: {
auth: {
flowType: 'pkce',
detectSessionInUrl: true,
persistSession: true,
autoRefreshToken: true
}
}
},
The build error happens even without the supabase config (with redirect: false).
I have tried deleting node_modules and package-lock.json, then rebuilding. Same problem.
Any other ideas?
0 Replies