^^^^^ No, it doesn't for two reasons. 1 - not using Angular2 (or I would have flagged it). 2 - the solution given in that "duplicate" clearly would never work - neither of the errors I'm getting appear in that question. So I've reposted with my own solution:
I am trying to use lodash in my application. I am using typescript, modularizing my code with export class MyClass
and importing them using requirejs. jQuery seems to be unaffected, but lodash throws the following:
'_' referes to a UMD global, but the current file is a module. Consider adding an import instead.
So I do that: import * as _ from 'lodash'
and I get
lodash.js is not a module
The first error is caused by the way in which the type definition file is structured. The second error is caused by requirejs not recognizing the umd format that lodash is wrapped in.
PS. I am using requirejs and MVC5. I realize this is not a common configuration in 2017 but I'm stuck with it.