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

1 Reply
You are using the v1 method and not the new 2.x.x syntax. https://supabase.com/docs/reference/javascript/subscribe