My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

How to use lodash node module in a TypeScript file?

Reza Razavipour's photo
Reza Razavipour
·Dec 28, 2016

I have not been able to get this to work.

I have done

npm install lodash --save

in my .ts file, I use:

import _ from "lodash"; or
import * as _ from "lodash";

...with no success. Any ideas to what I am missing?