I’ve been using lodash as a global import in my project, like this:
_ = require('lodash')
It’s been working fine until now. But after I upgraded to 1.6 I’m getting a ton of
cannot read property 'includes' of undefined etc. And if I check _ in the Meteor shell it’s undefined
On the client it works though, the problem is only on the server side
I also tried
lodash = require('lodash') _ = lodash
In the Meteor shell, lodash works but _ is undefined.