New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
server/api breaks when used with nuxt v3.1.x #151
Comments
Can you try with the last version of the module ? If you are still experiencing this error, please provide a reproduction 🙏 |
I'll give it a shot later today (CAT timezone) . I did start on setting up a reproduction repo but I haven't been lucky in reproducing the issue, whether the update works or not, I'll close this issue very shortly |
I'll close this until I'm able to reproduce, But I suspect this is most likely issues around tooling |
Oh! I have the EXACT same error as @sduduzog – I followed his advice and downgraded nuxt from 3.1.2 to 3.0.0 and it started working again
|
I'll try this again this coming weekend, firstly to reproduce and investigate the culprit causing this. I'll mirror your devDependencies too @blackspike in trying this |
@larbish Issue still exsists on latest version of nuxt 3.2.2. On server I am bypassing RLS with:
Which results in Using latest nuxt-supabase and nuxt. |
Same here - tried on 3.1.1 as well if that helps! |
@larbish I think I got it! so I ripped out the module and used the supabase client directly to try figure out what was the issue but followed how the module was setting it up. I get this error Perhaps its time to review this bit of code Line 118 in 034d7df
Also, I'm on nuxt v3.2.3 at the time of finding this |
Yep I'm getting this as well now |
Is this fixed now? just got the same error. |
After intensive debugging, I figured out a workaround for this issue. It turns out you need at least one root server route that uses the import { serverSupabaseClient } from "#supabase/server";
export default eventHandler(async (event) => {
const client = serverSupabaseClient(event);
return {
working: "true",
};
}); Just add the above code to not sure it'll work for everyone but it's worth a try I guess. |
@kyng-cytro This works for me too, I already had a root endpoint and I just had to re-install and enable the module |
Hey guys, are you still experiencing this issue in v0.3.5 ? |
Here's the logs I got before downgrading nuxt to v3.0.0
Version
@nuxtjs/supabase: v0.3.0
nuxt: v3.1.2
The text was updated successfully, but these errors were encountered: