我正在使用Next 13.4和打字。
我有一个superbaseedge函数,可以从两个不同的模块导入:
import { serve } from "https://deno.land/[email protected]/http/server.ts"
import { createClient } from 'https://esm.sh/@supabase/supabase-js@2?target=deno&no-check';
该功能运行良好,但这些导入不允许我构建和部署应用程序,给出了技术上相同的错误:
Cannot find module 'https://deno.land/[email protected]/http/server.ts' or its corresponding type declarations.
Cannot find module 'https://esm.sh/@supabase/supabase-js@2?target=deno&no-check' or its corresponding type declarations.
我在这里看到了同样的问题:
https://github.com/supabase/supabase-js/issues/744
但没有答案。