Faulty Ionic/Vue Supabase article

@mhartington Did you write this article? Quickstart: Ionic Vue | Supabase

If so, it references a file called ./store that isn’t there. Therefore the entire article doesn’t build. Just wanted to point that out. Thanks!

UPDATE! However…
Ok I found the Github repo and was able to add the following file:

Volar is throwing a few other errors which are minimal fixes for any Vue expert:

Login.vue

  • Change <ion-list inset="true"> to <ion-list :inset="true">
  • Change <ion-input v-model="email" name="email" autocomplete type="email"></ion-input> to <ion-input v-model="email" name="email" autocomplete="on" type="email"></ion-input>

A couple things I couldn’t fix since I’m not a TypeScript expert:

Login.vue

  • const { error } = await supabase.auth.signIn({ email: email.value }); getting error Property 'signIn' does not exist on type 'SupabaseAuthClient'.

Account.vue

  • const session = ref(supabase.auth.session()); getting error Property 'session' does not exist on type 'SupabaseAuthClient'

App.vue

  • store.user = supabase.auth.user() ?? {}; getting error Property 'user' does not exist on type 'SupabaseAuthClient'
1 Like