Your server is throwing an unhandled exception and taking down the node process.
You could try temporarily handling this event and logging the stack so you can at least track down where the error is coming from:
I would pop it into whichever server file gets loaded first (depending on your application structure + imports)
If you’re crashing on build you most likely are executing a bad piece of code during a require call.
we are using Meteor + NodeJS application. Meteor application use for communication for client and Nodejs application for connect to DB. We gave the nodeJS application reference in meteor application. When any un-handled error occurs in nodejs application we are not able to catch it.
We deploy the meteor and nodejs application as a package.
From Meteor we called nodejs methods using Meteor.wrapAsync(node.method1).
we are able to catch the exception in meteor till callback from node method. After callback if any exception occurs in nodejs method we are not able to handle it.