storages icon indicating copy to clipboard operation
storages copied to clipboard

Supabase adapter not working in deno (dependency import brocken/deprecated)

Open codenius opened this issue 1 year ago • 2 comments

Using this import, like pointed out in the docs (https://grammy.dev/plugins/session#external-storage-solutions)

import { supabaseAdapter } from 'https://deno.land/x/grammy_storages/supabase/src/mod.ts';

throws this error, when trying to execute.

Warning Implicitly using latest version (v2.24.0) for https://deno.land/x/supabase/mod.ts
error: Module not found "https://deno.land/x/supabase/mod.ts".
    at https://deno.land/x/[email protected]/supabase/src/deps.deno.ts:1:32

I suspect the supabase module import beeing deprecated, since it originates from an empty repo. I guess using https://esm.sh/@supabase/supabase-js@2 could do the trick.

codenius avatar Aug 09 '23 15:08 codenius

Fascinating ... why would they break everyone's setup? I guess we will have to migrate.

I asked about it in https://github.com/supabase-community/deno-supabase-js/issues/1.

KnorpelSenf avatar Aug 09 '23 16:08 KnorpelSenf

We have to adjust the import statements according to https://github.com/supabase-community/deno-supabase-js/issues/1#issuecomment-2204964743

KnorpelSenf avatar Jul 03 '24 11:07 KnorpelSenf