Saturday 7 October 2017

Can't async/await to work in Webstorm? (Node js 8.6.0)

I am trying to write code like so:const res = await pool.query('SELECT NOW()') await pool.end() And I am unable to do so, since I get "Expression is not a assignment or a call" error from Webstorm. JS language is set to ES6, Node 8.6.

Submitted October 07, 2017 at 05:28PM by HURCANADA

No comments:

Post a Comment