You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
17:23:27 4|system-manager-service | TypeError: Cannot read properties of undefined (reading 'Client')
17:23:27 4|system-manager-service | at list (C:\Projects\system-manager-service\node_modules\pm2\lib\API.js:600:10)
17:23:27 4|system-manager-service | at C:\Projects\system-manager-service\dist\services\system-manager-service\main.js:415:32
17:23:27 4|system-manager-service | at new Promise (<anonymous>)
17:23:27 4|system-manager-service | at PM2.initialize (C:\Projects\system-manager-service\dist\services\system-manager-service\main.js:404:16)
17:23:27 4|system-manager-service | at SM.initialize (C:\Projects\system-manager-service\dist\services\system-manager-service\main.js:45:25)
17:23:27 4|system-manager-service | at C:\Projects\system-manager-service\dist\services\system-manager-service\main.js:1365:37
17:23:27 4|system-manager-service | at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
API.js failing code block (line 600):
/**
* Get list of all processes managed
*
* @param {Function} cb Callback
*/
list (opts, cb) {
var that = this;
if (typeof(opts) == 'function') {
cb = opts;
opts = null;
}
// that is undefined
that.Client.executeRemote('getMonitorData', {}, function(err, list) { // << line 600
if (err) {
Common.printError(err);
return cb ? cb(Common.retErr(err)) : that.exitCli(conf.ERROR_EXIT);
}
...
What's going wrong?
that
is undefined within API.jslist
methodHow could we reproduce this issue?
pm2 version:
5.4.2
ecosystem.config.json:
PM2 startup:
I'm calling
list
function just like this:Error:
API.js failing code block (line 600):
tsconfig.json
The text was updated successfully, but these errors were encountered: