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

Importing certain JSRs will not work with deno compile #23551

Closed
narumincho opened this issue Apr 25, 2024 · 2 comments · Fixed by #23567
Closed

Importing certain JSRs will not work with deno compile #23551

narumincho opened this issue Apr 25, 2024 · 2 comments · Fixed by #23567
Labels
bug Something isn't working compile related to the `deno compile` feature

Comments

@narumincho
Copy link

Version: Deno 1.42.4

// url.ts

import { join } from "jsr:@std/url";

console.log(join);

deno run

deno run ./url.ts
[Function: join]

deno compile

deno compile ./url.ts
./url

Nothing is output and the program does not terminate.

workaround

import { join } from "jsr:@std/url/join";

console.log(join);

Importing jsr:@std/url/join instead of jsr:@std/url works fine

@marvinhagemeister marvinhagemeister added bug Something isn't working compile related to the `deno compile` feature labels Apr 25, 2024
@dsherret
Copy link
Member

Smaller reproduction:

import "jsr:@std/url@0.216/join";
import "jsr:@std/url@0.216/normalize";

@dsherret
Copy link
Member

Let's track this issue in #23139 (it's the same thing)

@dsherret dsherret closed this as not planned Won't fix, can't repro, duplicate, stale Apr 25, 2024
dsherret added a commit that referenced this issue Apr 27, 2024
When returning a jsr specifier for resolve it seems like deno core does
not work properly and hangs.

Closes #23551
Closes #23139
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working compile related to the `deno compile` feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants