-
Ensure you are starting your application with the
-r ./atatus.jsflag. For example:node -r ./atatus.js ./app/server.js -
You can enable debug flag to know whether anything is getting failed.
Issue with ES6, Babel, and TypeScript
If you are using ES6, Babel, or TypeScript, ensure you have created theatatus.js initialization file correctly and are using the proper import syntax:
- For JavaScript (ES Modules):
import atatus from 'atatus-nodejs' - For TypeScript:
import * as atatus from 'atatus-nodejs'
atatus.js file in your project root:
-r flag:
- Restart your Node.js server.