首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在deno中使用Supabase

在deno中使用Supabase
EN

Stack Overflow用户
提问于 2022-02-19 16:22:48
回答 2查看 1.2K关注 0票数 4

我想和德诺一起用苏巴酶。我使用了import { createClient } from "https://esm.sh/@supabase/supabase-js",但它只给我Module '"deno:///missing_dependency.d.ts"' uses 'export =' and cannot be used with 'export *'这样的错误

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2022-02-19 19:10:13

解决:使用import { createClient } from "https://cdn.jsdelivr.net/npm/@supabase/supabase-js/+esm"

票数 2
EN

Stack Overflow用户

发布于 2022-04-04 22:26:36

使用苏帕酶德诺包对我有效。

代码语言:javascript
复制
import { supabaseClient } from "https://deno.land/x/supabase_deno/mod.ts";
const sbclient = new supabaseClient("https://xyz.supabase.co","your-anon-key")
const sbTableItems = new supabaseTableItems(sbclient, "your-table");
const result = await sbTableItems.add(data);
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/71186839

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档