invakid404
invakid404ā€¢4mo ago

Error while executing Bun script: missing sourcemaps

After updating to the latest Windmill Docker image, I started getting this error when running a specific Bun script:
ExecutionErr: ExitCode: 1, last log lines:
m5
at /tmp/windmill/wk-default-e82d921f019408-gz0Ub/01912813-eac2-7505-9c68-52de62e903ee/main.js:26:48
at /tmp/windmill/wk-default-e82d921f019408-gz0Ub/01912813-eac2-7505-9c68-52de62e903ee/main.js:234731:17
note: missing sourcemaps for /tmp/windmill/wk-default-e82d921f019408-gz0Ub/01912813-eac2-7505-9c68-52de62e903ee/main.js
note: consider bundling with '--sourcemap' to get unminified traces

Bun v1.1.21 (Linux x64 baseline)
ExecutionErr: ExitCode: 1, last log lines:
m5
at /tmp/windmill/wk-default-e82d921f019408-gz0Ub/01912813-eac2-7505-9c68-52de62e903ee/main.js:26:48
at /tmp/windmill/wk-default-e82d921f019408-gz0Ub/01912813-eac2-7505-9c68-52de62e903ee/main.js:234731:17
note: missing sourcemaps for /tmp/windmill/wk-default-e82d921f019408-gz0Ub/01912813-eac2-7505-9c68-52de62e903ee/main.js
note: consider bundling with '--sourcemap' to get unminified traces

Bun v1.1.21 (Linux x64 baseline)
I tried wiping everything under /tmp/windmill/cache/bun and /tmp/windmill/cache_nomount/bun{,tar} and redeploying the script, but I still get the same error.
7 Replies
invakid404
invakid404OPā€¢4mo ago
Currently running CE v1.375.0-9-gb9b30e66e
rubenf
rubenfā€¢4mo ago
use //nobundling at the top it has nothing to do with sourcemaps we just use pre-bundling now which in some cases fail which you can disable with //nobundling
invakid404
invakid404OPā€¢4mo ago
oh, I see this did indeed fix it it does appear to be working just fine in some cases, not sure what's "special" about this particular script
rubenf
rubenfā€¢4mo ago
it's a bun bundler issue, if you isolate it, please report it to bun project and windmill will eventually pick up the fix
invakid404
invakid404OPā€¢4mo ago
yeah, figured unfortunately, it's a script that does quite a lot and has a lot of dependencies, so it'd be tough to pinpoint exactly what's causing it
rubenf
rubenfā€¢4mo ago
the more it does, the more you will benefit from bundling šŸ™‚
invakid404
invakid404OPā€¢4mo ago
I'll spend some time with it later to try and figure out what goes wrong nobundling will do for now thanks!