Skip to content

Pin vue-demi and vue-composition-api dependencies to last working version #16

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

Merged

Conversation

sduduzog
Copy link
Collaborator

@sduduzog sduduzog commented Nov 3, 2021

Most likely an issue with [email protected] but it seems to break the composition api and thus, provide/inject will not work properly,(not sure what other features) and within nuxt, you get the error attached below, and an error screen when in dev mode on you browser
image

This is a familiar error for vue-demi as it has happened before and a fix for it was updating the composition-api dependency and setting a minimum required one...

I also took the opportunity to expose one more type that I hope people will find usefull:
There's no need to install @supabase/supabase-js along side these packages now as they pretty much bring all you need. i.e. Here's a quick example of what I mean

import { Session, useSupabase } from "vue-supabase" // no need to import Session from @supabase/supabase-js anymore
const session = ref<Session>();
setup() {
  const supabase = useSupabase();
  supabase.auth.onAuthStateChange((_, _session) => {
    session.value = _session;
  });
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants