I\'m using WebStorm and I\'m getting an error that I can\'t understand. Node.js + MongoDB.
var mongoose = require(\'mongoose\'); mongoose.Promise = global.P
You need to change JavaScript Language Version to ES6. Changing this setting should fix the issue:
In some scenarios, you might need to restart your IDE for the changes to reflect properly.