镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Uncaught (in promise) Error: Module not found "node:https". #20

Description

@harrisrobin

Hi, when trying to use serpapi with Deno

import * as serpapi from "https://deno.land/x/serpapi@2.0.0/mod.ts";

I run into the following error:

error: Uncaught (in promise) Error: Module not found "node:https".
      const ret = new Error(getStringFromWasm0(arg0, arg1));
                  ^
    at __wbg_new_8d2af00bc1e329ee (https://deno.land/x/eszip@v0.35.0/eszip_wasm.generated.js:513:19)
    at <anonymous> (https://deno.land/x/eszip@v0.35.0/eszip_wasm_bg.wasm:1:1559899)
    at <anonymous> (https://deno.land/x/eszip@v0.35.0/eszip_wasm_bg.wasm:1:1398157)
    at <anonymous> (https://deno.land/x/eszip@v0.35.0/eszip_wasm_bg.wasm:1:1895031)
    at __wbg_adapter_40 (https://deno.land/x/eszip@v0.35.0/eszip_wasm.generated.js:229:6)
    at real (https://deno.land/x/eszip@v0.35.0/eszip_wasm.generated.js:213:14)

I'm new to Deno, and not sure what I'm doing wrong. Any ideas?

Activity

  1. zyc9012 commented on Nov 6, 2023

    @zyc9012
    Collaborator

    @harrisrobin Which version of Deno are you using?

  2. harrisrobin commented on Nov 6, 2023

    @harrisrobin
    Author

    @harrisrobin Which version of Deno are you using?
    deno 1.37.2

    node v18.15.0

    Some more info:

    this happens specifically when i try to deploy my supabase edge function and downgrading to serpapi 1.1.1 solved the issue for me which is okay for now.

  3. zyc9012 commented on Nov 7, 2023

    @zyc9012
    Collaborator

    @harrisrobin It turns out that supabase cli doesn't support building edge function that imports modules with node specifiers for now.

    I've created an issue there: supabase/cli#1640

  4. harrisrobin commented on Nov 7, 2023

    @harrisrobin
    Author

    @harrisrobin It turns out that supabase cli doesn't support building edge function that imports modules with node specifiers for now.

    I've created an issue there: supabase/cli#1640

    thanks for looking into it. i subscribed to the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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