Hi, trying out Trigger.dev and got it working with 2 tasks.
Now when I go and add a 3rd, I keep getting this:
Error: Build failed
Uncaught exception: Cannot find module '/apps/ticketnotifier/.trigger/tmp/build-jBBU2y/lib/worker.js'
UncaughtExceptionError: Cannot find module '/apps/ticketnotifier/.trigger/tmp/build-jBBU2y/lib/worker.js'
at ChildProcess.<anonymous> (trigger.dev/dist/esm/indexing/indexWorkerManifest.js:56:28)
at ChildProcess.emit (node:events:518:28)
at emit (node:internal/child_process:950:14)
at processTicksAndRejections (node:internal/process/task_queues:91:21)
I'm on Ubuntu 24.04, node.js 22.11.0. I've also tried on macOS, and got the same error (just with different paths in the stacktrace)
It seems no matter the content of my 3rd tasks, it fails randomly (sometimes just changing the file name makes it work)
I've tried deleting stuff line by line to find the culprit import but it's very inconsistent. If I delete everything from the file (empty), it still fails with the same error. I've tried clearing my pnpm dlx cache manually, but no luck.
Nothing unusual running with --log-level verbose -- A successful run prints
worker manifest indexed {
path: '/mnt/ssd-nvme-4tb/WebstormProjects/acme-corp/apps/ticketnotifier/.trigger/tmp/build-Hfb7f7'
}
While a failed one does not.
This seems similar to this other issue: https://discord.com/channels/1066956501299777596/1290983187232591872