Cannot find module 'underscore' || install underscore module in angular 2

You need to install that libraries typings definitions in previous versions, if you want to use an JS library in TypeScript.

In newer version of TypeScript uses @types system. So now you don't need to install typings manually, you can just write this. For first install

And then

Share This:

Leave a Reply

Your email address will not be published. Required fields are marked *