Open Paul75 opened 4 years ago
The same environment, and the same issue~~
ps: 1th run the command
nexe src/index.ts --resource "./**/*"
got the size: 230M Jun 24 17:23 robot
2th run the same nexe src/index.ts --resource "./**/*"
command got the file size
ℹ nexe 3.3.3
✔ Included 7725 file(s). 359.702 MB
✔ Already downloaded...
✔ Compiling result
✔ Writing result to file
✔ Finished in 140.259s
Error: ENOSPC: no space left on device, write
66G Jun 24 17:43 robot
OMG~ What happened~
Hi @Paul75 You need to make sure your entrypoint is a javascript application and not a typescript application. Follow the build instructions on that repo and I think the entryfile is located at
./dist/app.js
Hello,
I'm sure is point to javascript ....
The command you posted is pointing at a typescript file nexe src/app.ts
Hello,
But the same if I do nexe dist/app.js
thanks
@Paul75
It works by ts to js~ the js must be es5
but if you use typeorm, you must be sure the ormconfig.json
correct ponit to js entity!
@Paul75 I had the same issue without ts, solved by including everything in the build "-r ./" or "-r */**", can't recall which actually did it. I imagine you have "type": "module" in your package.json, not sure if including it is the right approach, but hey at least now I have a different error :P
Hello,
What happened: Compilation good but not start. Got error.
What you expected to happen: When I do with https://github.com/w3tecch/express-typescript-boilerplate and do :
nexe src/app.ts --build --resource "./templates/**/*" --resource "./commands/**/*" --resource "./node_modules/**/*" --resource "./iroquois/**/*" --resource "./files/**/*" --resource "./src/**/*" --resource ".env"
It create file "app". But when I do :
./app
Got. :
How to reproduce it (as minimally and precisely as possible): I use this script to do my project write into (typescript) but can compile with npm run build and got into dist directory js files : https://github.com/w3tecch/express-typescript-boilerplate
Anything else we need to know?:
Environment: