79094836

Date: 2024-10-16 15:51:00
Score: 1.5
Natty:
Report link

Okay, The error you're encountering is due to the use of ES6 export default syntax in the pm2.config.js file, which isn't natively supported in Node.js unless you enable ECMAScript modules (ESM) by using .mjs files or enabling ESM through the package.json file.

The solution would be to convert the file to commonjs. Syntax: module.exports=[]

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Sahil Bisht