Deployment Error for Adonis 6 Application on Render: Build Fails with triggerUncaughtException

Hello everyone,

I hope you’re all doing well. I am attempting to deploy an Adonis 6 project to Render, using the following commands:

  • Build Command: npm install; npm run build
  • Start Command: node build/bin/server.js

During the deployment process, I encounter the following log output and error:

==> Cloning from https://github.com/X  
==> Checking out commit 05526a8a6c2c569de9ae206c4fc14eefd768ceed in branch main  
==> Using Node.js version 22.13.0 via environment variable NODE_VERSION  
==> Docs on specifying a Node.js version: https://render.com/docs/node-version  
==> Using Bun version 1.1.0 (default)  
==> Docs on specifying a bun version: https://render.com/docs/bun-version  
==> Running build command 'npm install; npm run build'...  
added 451 packages, and audited 452 packages in 7s  
122 packages are looking for funding  
  run `npm fund` for details  
1 moderate severity vulnerability  
To address all issues, run:  
  npm audit fix  
Run `npm audit` for details.  
> projetoenem@0.0.0 build  
> node ace build  
node:internal/modules/run_main:122  
    triggerUncaughtException(  
    ^  
[Object: null prototype] {  
  [Symbol(nodejs.util.inspect.custom)]: [Function: [nodejs.util.inspect.custom]]  
}  
Node.js v22.13.0  
==> Build failed 😞  
==> Common ways to troubleshoot your deploy: https://render.com/docs/troubleshooting-deploys  

Thank you very much in advance for your help!