If I do nothing and add the type definition it works for jquery but lodash gets a
'_' referes to a UMD global, but the current file is a module. Consider adding an import instead.
If I try to import lodash with any combination of import call, I get
lodash.js is not a module
I tried to get help by asking a question here and it was closed because there was another answer for Angular (Angular 2). I really need a real answer so I'm re-posting with my own solutions, hoping someone will eventually help me understand this problem.
In this case I am:
- Not using any frameworks like Angular
- Using TypeScript
- Using requirejs to import modules
- Using Visual Studio
- Using MVC5