gruntjs / grunt-contrib-pug

Compile Pug templates.
http://gruntjs.com/
MIT License
328 stars 77 forks source link

Getting "SyntaxError: Use of Const in strict mode" due to pug@2.0.0-rc.2 #177

Closed andycshih closed 7 years ago

andycshih commented 7 years ago

This error did not occur with pug@2.0.0-beta11.

This is the error I'm seeing.

Running "pug:compile" (pug) task

/app/node_modules/grunt-contrib-pug/node_modules/pug/node_modules/pug-parser/index.js:391
      const expr = this.parseExpr();
      ^^^^^
>> SyntaxError: Use of const in strict mode.
Warning: Pug failed to compile
shinnn commented 7 years ago

Upgrade Node.js.