error: ENOENT with bun turborepo
jedpattersonn
HOBBYOP

2 months ago

Hey, so suddenly my builds for one of my apps in my monorepo has started failing with the following error:

bun --filter @trackr/api run build

155ms

error: ENOENT

ERROR: failed to build: failed to solve: process "sh -c bun --filter @trackr/api run build" did not complete successfully: exit code: 1

When I run the build command locally, it builds fine. It was working before and after a couple commits it stopped working (those commits just changed a couple API routes)

Solved

3 Replies

Railway
BOT

2 months ago

Hey there! We've found the following might help you get unblocked faster:

If you find the answer from one of these, please let us know by solving the thread!


jedpattersonn
HOBBYOP

2 months ago

Here is the build command that it's running

    "build": "bun --bun build src/index.ts --outdir dist --target=bun"

As mentioned above, that builds fine locally


jedpattersonn
HOBBYOP

2 months ago

Resolved by changing custom build command to

turbo run build --filter=@trackr/api


Status changed to Solved jedpattersonn about 2 months ago


Loading...