Skip to content

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

@codenius

Description

@codenius

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/grammy_storages@v2.3.0/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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions