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

Oak import causes a compiled app to hang #648

Open
jackfiszr opened this issue Mar 29, 2024 · 1 comment
Open

Oak import causes a compiled app to hang #648

jackfiszr opened this issue Mar 29, 2024 · 1 comment
Labels

Comments

@jackfiszr
Copy link

jackfiszr commented Mar 29, 2024

Easiest way to reproduce:

Create deps.ts with:

import { Application } from "jsr:@oak/[email protected]";
console.log(Application);

run deno compile deps.ts
run ./deps
The binary will hang forever and not reach the console log.
This was tested on Ubuntu 22.04 and Windows 10, Deno 1.41.3 and 1.42.0.
The affected Oak versions are: I guess every one on JSR but only 14.2.0 on deno.land/x

Edit:
The same happens when I do for example import { walk } from "@std/fs/walk" instead of just import { walk } from "@std/fs" - works with deno run but not when compiled, so probably a deno compile issue.

@kitsonk
Copy link
Collaborator

kitsonk commented Mar 29, 2024

As you point out, it is likely something to do with Deno compile. I assume you have opened an issue with Deno?

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

No branches or pull requests

2 participants