closure syntax
// cluster.on('online', (worker) => {
cluster.on('online', function (worker) {
WebStorm editor flags the commented out line as an error. Code runs fine either way. Is this a known issue and is there a fix/workaround?
This is with node.js.
Please sign in to leave a comment.
Please make sure to set 'JavaScript language version' in Settings (Preferences)/Languages & Frameworks/JavaScript to 'ECMAScript 6'
That works. Thanks for your reply and the blog on setting up the transpiler in WS.