代码之家  ›  专栏  ›  技术社区  ›  Lukas Luke Stateczny

Subabase边缘函数deno-在next js中找不到模块

  •  0
  • Lukas Luke Stateczny  · 技术社区  · 1 年前

    我正在使用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

    但没有答案。

    0 回复  |  直到 1 年前