oak icon indicating copy to clipboard operation
oak copied to clipboard

Oak import causes a compiled app to hang

Open jackfiszr opened this issue 1 year ago • 1 comments

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.

jackfiszr avatar Mar 29 '24 16:03 jackfiszr

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

kitsonk avatar Mar 29 '24 23:03 kitsonk