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

Failed to import - #1034

Open
kyleconroy opened this issue Jan 15, 2025 · 2 comments
Open

Failed to import - #1034

kyleconroy opened this issue Jan 15, 2025 · 2 comments
Labels
deno Not working in Deno

Comments

@kyleconroy
Copy link

kyleconroy commented Jan 15, 2025

Failing module

$ deno cache https://esm.sh/[email protected]

Error message

After running deno cache I got this:

error: Module not found "https://esm.sh/build/Release/canvas.node?target=denonext".
    at https://esm.sh/[email protected]?target=denonext:2:8

Additional info

  • Deno version: v1.41.3
@kyleconroy kyleconroy added the deno Not working in Deno label Jan 15, 2025
@vbookie
Copy link

vbookie commented Jan 16, 2025

Hello. We have a similar problem since version 136. We are using deno 2.1.4 and 2.1.5

We are importing https://esm.sh/@actions/[email protected], which imports the undici package. This leads to import of "/node:sqlite?target=denonext";, but no such module exists.

https://esm.sh/[email protected]?target=denonext

/* esm.sh - [email protected] */
import "/node:sqlite?target=denonext";
export * from "/[email protected]/denonext/undici.mjs";
export { default } from "/[email protected]/denonext/undici.mjs";

I'm not sure whether the node: prefix is expected. The server correctly resolves htttps://esm.sh/sqlite?target=denonext (without the prefix).

Using https://esm.sh/v135/@actions/[email protected] resolves all dependencies correctly.

@kyleconroy
Copy link
Author

We ended up downgrading to v135 to solve this issue. It looks like the issue is that removal of build support in v136

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deno Not working in Deno
Projects
None yet
Development

No branches or pull requests

2 participants