datatypevoid / vulgar

A simple and scalable MEAN stack development kit featuring Angular 2 (Router, Http, Forms, Services, Tests, E2E, Coverage, Dev/Prod), Express, MongoDB, Mongoose, Node, PassportJS, Socket.io, Karma, Protractor, Jasmine, Istanbul, SASS Support, TypeScript, TSLint, NG2Lint, Hot Module Replacement, Docco, Gulp, and Webpack by @datatypevoid
MIT License
286 stars 66 forks source link

How to include underscore #38

Closed munavargit closed 7 years ago

munavargit commented 7 years ago

Clarification:

  1. I have done "npm install @types/underscore"
  2. import * as _ from 'underscore' in one of component.ts file

when built using npm start, it always saying coud not find module 'underscore'

I have included in vendor.ts using import '@types/underscore'. Still I get the same issue.

Can you please guide me to include underscore?

munavargit commented 7 years ago

Update: after including lodash into typings by "typings install lodash --save", it worked.