Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
harrisrobin opened this issue Nov 6, 2023 · 4 comments
Open

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

harrisrobin opened this issue Nov 6, 2023 · 4 comments

Comments

@harrisrobin
Copy link

Hi, when trying to use serpapi with Deno

import * as serpapi from "https://deno.land/x/[email protected]/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/[email protected]/eszip_wasm.generated.js:513:19)
    at <anonymous> (https://deno.land/x/[email protected]/eszip_wasm_bg.wasm:1:1559899)
    at <anonymous> (https://deno.land/x/[email protected]/eszip_wasm_bg.wasm:1:1398157)
    at <anonymous> (https://deno.land/x/[email protected]/eszip_wasm_bg.wasm:1:1895031)
    at __wbg_adapter_40 (https://deno.land/x/[email protected]/eszip_wasm.generated.js:229:6)
    at real (https://deno.land/x/[email protected]/eszip_wasm.generated.js:213:14)

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

@zyc9012
Copy link
Collaborator

zyc9012 commented Nov 6, 2023

@harrisrobin Which version of Deno are you using?

@harrisrobin
Copy link
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.

@zyc9012
Copy link
Collaborator

zyc9012 commented Nov 7, 2023

@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

@harrisrobin
Copy link
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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants