-
Hello, I'm getting this error when executing bun build --compile ... EINVAL: failed to move executable to result path it comes probably from this line: https://github.com/oven-sh/bun/blob/main/src/StandaloneModuleGraph.zig#L525C19-L525C28 D:\dev\buntest>dir
29.06.2024 11:18 <DIR> .
29.06.2024 11:18 <DIR> ..
29.06.2024 10:51 66 hello.ts
1 File(s) 66 bytes
2 Dir(s) 63 940 591 616 bytes free
D:\dev\buntest>bun build --compile --target=bun-windows-x64 ./hello.ts --outfile ./out
[8ms] bundle 1 modules
EINVAL: failed to move executable to result path
D:\dev\buntest>dir
Volume in drive D is Crucial_2TB
Volume Serial Number is 60E2-F1BC
Directory of D:\dev\buntest
29.06.2024 11:18 <DIR> .
29.06.2024 11:18 <DIR> ..
29.06.2024 10:51 66 hello.ts
29.06.2024 11:21 110 037 686 .17dd6fb377cedabe-00000000.bun-build
2 File(s) 110 037 752 bytes
2 Dir(s) 63 830 491 136 bytes free
D:\dev\buntest>mv .17dd6fb377cedabe-00000000.bun-build out.exe
'mv' is not recognized as an internal or external command,
operable program or batch file.
D:\dev\buntest>rename .17dd6fb377cedabe-00000000.bun-build out.exe
D:\dev\buntest>out.exe
Hello!
Hello, v22.3.0!
D:\dev\buntest> but I figured out that produced file is working, I just need to rename it manually to What I did:
My OS system info:click to see output of
|
Beta Was this translation helpful? Give feedback.
Answered by
lukasMega
Jun 29, 2024
Replies: 2 comments
-
Solution (❗ Workaround❗ ):Steps after
|
Beta Was this translation helpful? Give feedback.
0 replies
-
now, finally I have found out Solution:DO NOT USE Windows AND
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
lukasMega
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
now, finally I have found out
Solution:
DO NOT USE Windows AND
D:\
path - move your work somewhere underC:\
and this error will stop