Open jlucaso1 opened 2 weeks ago
@jlucaso1 I tried reproducing the issue using the same code you attached, but I added a log to see the output. As you can see in the attached pictures, it runs without any problem on my side. PS: I'm using Windows
@MohammadSu1 i tested early in linux. Curious that works fine in windows :thinking: . Can you try in wsl?
This happens because import.meta.url
points to a non-existent temp directory for compiled executables.
This seems to work:
$ deno compile main.js
$ mkdir /tmp/deno-compile-chdir-deno-compile/chdir-deno-compile # replace with tmp dir for your executable
$ ./chdir-deno-compile
Version: Deno 2.0.0
I've tried to compile a nextjs standalone compiled project and got this error when try to execute the compiled denojs version of this project:
Minimal repro:
deno compile -A main.js
./main