Skip to content
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

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

Open
codenius opened this issue Aug 9, 2023 · 2 comments · May be fixed by #192
Open

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

codenius opened this issue Aug 9, 2023 · 2 comments · May be fixed by #192

Comments

@codenius
Copy link

codenius commented Aug 9, 2023

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 codenius changed the title Supabase adapter not working (dependency import brocken/deprecated) Supabase adapter not working in deno (dependency import brocken/deprecated) Aug 9, 2023
@KnorpelSenf
Copy link
Member

KnorpelSenf commented Aug 9, 2023

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

I asked about it in supabase-community/deno-supabase-js#1.

@KnorpelSenf
Copy link
Member

We have to adjust the import statements according to supabase-community/deno-supabase-js#1 (comment)

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