Deno Compile Exe doesn't run
Quick question, I just got started with deno because I wanted to make an exe of my simple node js app. It ran pretty much right away without having to change anything except adding
node:
in front of my path
and crypto
imports. Honestly, I was expecting to have to do so much more so that was awesome. It compiled just fine to an exe, but when I try to run the exe, it outputs with:
It ran just fine with deno -A index.js
so I assumed building it would work with the old npm packages. I feel like I'm missing something really basic. Do I need to replace the problematic drivelist
npm package to something that's more deno compatible? I didn't see anything about certain packages working/not working in the documentation for deno compile as opposed to just running normally. I've tried using a variety of flags with compile but nothing has resulted in a working exe yet. Any help is appreciated!5 Replies
drivelist
uses napi. I don't believe this is supported quite yet in deno compile
. I found this open issue: https://github.com/denoland/deno/issues/23266. cc @divyGitHub
Issues · denoland/deno
A modern runtime for JavaScript and TypeScript. Contribute to denoland/deno development by creating an account on GitHub.
yup @snek is working on a fix https://github.com/denoland/deno/pull/26389
So if I'm understanding this right, native node modules can't be used with compile? I'd assume any deno equivalents, if they exist would work?
yes
Thanks for the clarification.