Unitech / pm2

Node.js Production Process Manager with a built-in Load Balancer.
https://pm2.keymetrics.io/docs/usage/quick-start/
Other
41.31k stars 2.61k forks source link

pm2 Not Supported Optional Chaining #5010

Open digital-mets opened 3 years ago

digital-mets commented 3 years ago

What's going wrong?

When I run code using node and nodemon there's no problem using "Optional Chaining". But when I run code using pm2 there's an error showing "Unexpected Token '.'" from "result?.code".

How could we reproduce this issue?

Use an Optional Chaining Operator then run it on pm2.

Supporting information

$ pm2 report
thilook commented 2 years ago

I`m having the same issue but just for Cluster mode.

Does anyone have a workaround?

petr-hybler commented 2 years ago

same here ... any idea how to resolve?

alienbuild commented 1 year ago

Any resolve for this yet?

alienbuild commented 1 year ago

Reverted to old checking method for the time being

hewenguang commented 1 month ago

any update ?