Thursday, 8 June 2017

Kue returning weird syntaxError - but why?

I have a node js program which uses KUE and Redis - everything worked fine however I must have done something which completely broke the program - however I have no idea what happened.

I did not change my KUE code, and now when I try to run my program I get the following error:

/home/centos/repo/node_modules/kue/node_modules/pug/node_modules/pug-parser/index.js:391
      const expr = this.parseExpr();
      ^^^^^
SyntaxError: Use of const in strict mode.

I have no idea why this is happening. I did not update anything and this error suddenly started popping up - I know this is nothing to do with the KUE code itself as this is directly taken from https://github.com/Automattic/kue Any idea what could be the issue?

My node version is - v0.10.30

Any help appreciated!



via noDe1

No comments:

Post a Comment