N
Nuxtβ€’2mo ago
Deepmkx

Nuxt/Supabase plugin question

Hello everyone, I'm trying out the following plugin http://supabase.nuxtjs.org/usage/composables/usesupabaseclient But for some weird reason I cannot use the .update method, as its type definition expects an object of type never. Sorry i'm not an expert and just trying to learn, I tried several things for hours but can't make it work 😦 I manage to use create/delete/upsert quite well otherwise
Nuxt x Supabase - Docs
useSupabaseClient - Nuxt x Supabase - Docs
Make requests to the Supabase API with the useSupabaseClient composable
2 Replies
kapa.ai
kapa.aiβ€’2mo ago
Hi @Deepmkx. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- I apologize, but I don't have enough specific information in the provided knowledge sources to directly address your issue with the .update method in the Nuxt Supabase plugin. The documents don't contain details about this particular problem or the type definition you're encountering. However, I can offer some general advice based on the available information: 1. Make sure you're using the latest version of the @nuxtjs/supabase module, as type definitions can change between versions. 2. Double-check that you're using the useSupabaseClient composable correctly as described in the Nuxt Supabase documentation (https://supabase.nuxtjs.org/usage/composables/usesupabaseclient). 3. If you're still encountering issues, it might be helpful to create a minimal reproducible example and report it as a potential bug. The Nuxt documentation suggests: "We recommend taking a look at how to report bugs (https://nuxt.com/docs/community/reporting-bugs). Nuxt is still in active development, and every issue helps make it better." Nuxt Documentation (https://nuxt.com/docs/community/getting-help#could-there-be-a-bug) 4. When reporting a bug, make sure to "Figure Out What the Cause Might Be" as mentioned in the Nuxt bug reporting guide (https://nuxt.com/docs/community/reporting-bugs#figure-out-what-the-cause-might-be). It suggests: "Try to report the bug at the most relevant and specific place. That will likely be the Nuxt module causing an issue, or the upstream library that Nuxt is depending on." If you continue to face difficulties, consider reaching out to the Nuxt or Supabase community forums with a detailed description of your problem, including code samples and the exact error messages you're receiving. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
Deepmkx
DeepmkxOPβ€’2mo ago
Hello, not sure it's a good thing but so far I fixed it doing as follows .update({ content: newcontent } as never)
Want results from more Discord servers?
Add your server