storages
storages copied to clipboard
Supabase adapter not working in deno (dependency import brocken/deprecated)
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.
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.
We have to adjust the import statements according to https://github.com/supabase-community/deno-supabase-js/issues/1#issuecomment-2204964743