Importing lodash into angular2 + typescript application
Clash Royale CLAN TAG #URR8PPP Importing lodash into angular2 + typescript application I am having a hard time trying to get the lodash modules imported. I've setup my project using npm+gulp, and keep hitting the same wall. I've tried the regular lodash, but also lodash-es. The lodash npm package: (has an index.js file in the package root folder) import * as _ from 'lodash'; Results in: error TS2307: Cannot find module 'lodash'. The lodash-es npm package: (has a defaut export in lodash.js i the package root folder) import * as _ from 'lodash-es/lodash'; Results in: error TS2307: Cannot find module 'lodash-es'. Both the gulp task and webstorm report the same issue. Funny fact, this returns no error: import 'lodash-es/lodash'; ... but of course there is no "_" ... My tsconfig.json file: { "compilerOptions": { "target": "es5", "module": "system", "moduleRe...