Sign in
Log inSign up

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?

Hassle-free blogging platform that developers and teams love.
  • Docs by Hashnode
    New
  • Blogs
  • AI Markdown Editor
  • GraphQL APIs
  • Open source Starter-kit

© Hashnode 2024 — LinearBytes Inc.

Privacy PolicyTermsCode of Conduct