on().subscribe() - Property 'on' does not exist on type PostgrestQueryBuilder

Hi all, I am new here, I got some problem encountered this day, my on method in realtime supabase cant be detected though I've done npm i supabase and importing the supabase client on my code. Is anyone can give me clear exlpanation of what should I do or maybe ever encountered same problem? thanks for the insight
No description
1 Reply
garyaustin
garyaustin3y ago
You are using the v1 method and not the new 2.x.x syntax. https://supabase.com/docs/reference/javascript/subscribe
Supabase Documentation
on().subscribe()
on().subscribe()

Did you find this page helpful?