Hello,
I’m having an issue deploying my trigger.dev project. I’ve tried everything, on different machines. It works in dry run, but fails during the actual deployment:
- Removed import "dotenv/config" and import "tsconfig-paths/register" from trigger.config.ts
- Added tsconfig: "./tsconfig.json" in defineConfig
- Installed trigger.dev as a local dependency instead of using pnpm dlx
- Created a tsconfig.trigger.json extending the main tsconfig
- Created a fully standalone tsconfig.trigger.json without extends
- Added .npmrc with node-linker=hoisted
- Changed the package.json script to use node_modules/.bin/trigger
- Cleared the jiti cache (/tmp/node-jiti) and the .trigger folder
- Added a node-path-fix extension in trigger.config.ts
- Added build.env.PATH in the config
- Tried creating a custom Containerfile
- Downgraded to trigger.dev 4.3.0
I’m still getting the following error:
■ Error: spawn node ENOENT
Error: spawn node ENOENT
at Process.ChildProcess._handle.onexit (node:internal/child_process:286:19)
at onErrorNT (node:internal/child_process:484:16)
at processTicksAndRejections (node:internal/process/task_queues:82:21)
└ Aborting deployment
Here are the logs — it’s always the same issue.
If anyone can help, I’d really appreciate it 🙏