Open Araxeus opened 3 months ago
const serverBuild = Bun.build({ entrypoints: ['./src/server.ts'], outdir: 'dist', target: 'node', }); const frontBuild = Bun.build({ entrypoints: ['./pages/website.ts'], outdir: 'dist', target: 'browser', }); await Promise.all([serverBuild, frontBuild]);
See also #12033 and #10843
Bun v1.1.21 (70ca2b76) Windows x64 CPU: sse42 avx avx2 avx512 Args: "C:\Users\Araxeus\.bun\bin\bun.exe" "scripts/build.ts" Features: jsc tsconfig_paths(2) tsconfig(2) Builtins: "bun:main" "node:fs/promises" "node:path" Elapsed: 46ms | User: 15ms | Sys: 62ms RSS: 0.14GB | Peak: 0.14GB | Commit: 0.21GB | Faults: 34065
Bun v1.1.21 (70ca2b7) on windows x86_64 [AutoCommand]
70ca2b7
panic: attempt to use null value
uws.zig:2805
wakeup
llint_entry
Removing the await Promise.all([ and individually awaiting each build fixed the error for me, but it's not an ideal solution.
await Promise.all([
How can we reproduce the crash?
See also #12033 and #10843
Relevant log output
Stack Trace (bun.report)
Bun v1.1.21 (
70ca2b7
) on windows x86_64 [AutoCommand]panic: attempt to use null value
uws.zig:2805
:wakeup
llint_entry