pm2 module with nextjs
Unanswered
Houss posted this in #help-forum
HoussOP
i need to use the pm2 module in my nextjs website but when i use any pm2 function it gives me this error:
./node_modules/blessed/lib/program.js
Error:
x Legacy octal escape is not permitted in strict mode
,-[D:\WorkSpace\Work\pvbot\test\node_modules\blessed\lib\program.js:195:1]
195 | return data.replace(/[\0\x80\x1b-\x1f\x7f\x01-\x1a]/g, function(ch) {
196 | switch (ch) {
197 | case '\0':
198 | case '\200':
: ^^
199 | ch = '@';
200 | break;
201 | case '\x1b':
`----
x Legacy octal escape is not permitted in strict mode
,-[D:\WorkSpace\Work\pvbot\test\node_modules\blessed\lib\program.js:1911:1]
1911 | //Program.prototype.pad =
1912 | Program.prototype.nul = function() {
1913 | //if (this.has('pad')) return this.put.pad();
1914 | return this._write('\200');
: ^^
1915 | };
1916 |
1917 | Program.prototype.bel =
`----
Caused by:
Syntax Error1 Reply
HoussOP
NOTE: pm2 works normally when i use express.js as a backend, but gives this error with nextjs, either on server component or api route