#Unable to run the executable file packaged by the pkg module

6 messages · Page 1 of 1 (latest)

cold jetty
#

Is the file you are double clicking on the js file or the exe?

fathom night
#

the error in terminal

fathom night
#

maybe I find the reason

PS F:\练习> pkg -t node18-win-x64 test.js [email protected] Warning Babel parse has failed: import.meta may appear only with 'sourceType: "module"' (5:49) Warning Failed to make bytecode node18-x64 for file C:\snapshot\练习\test.js

#

I am ready to try pkg again, I ignored this error last time

autumn carbon
#

Unrelated, but: Which screenshot tool did you use to blur your desktop?