PSST! Want to get faster responses to bug reports and important issues? Help us keep the issue tracker organized by:
Please move all other content to Stack Overflow.
I want to use lodash for my code base.. I have installed lodash by running this command
$ npm install lodash
After this there is a folder created to my node_modules folder..
in my .ts file I have written code as like below

It is showing an error cannot find module 'lodash'....
Can any one please help me to try this one

I found this discussion that seems to cover the problem:
https://stackoverflow.com/questions/34660265/importing-lodash-into-angular2-typescript-application
@JaganJonnala, this is the development issue tracker for the NativeScript-Angular integration. Please use StackOverflow for similar questions.
Problem not solved till.... i have Done same as Code in stackoverflow
It's not working for me either :(
Any other way to do this?
In your project directory, install lodash
npm install --save lodash
Then you can use it in any .ts file
import * as _ from 'lodash';
But:
This was however failing (lodash file not found during compilation), I had to clean up the project.
tns clean-app ios
@JaganJonnala @elvismercado @Xample,
I am trying to use lodash library in Nativescript angular application.
But end with below mentioned error,
JS: ERROR Error: Uncaught (in promise): TypeError: _(...).chain(...).where is not a function
JS: TypeError: _(...).chain(...).where is not a function
I have described my issue in detail on this forum post,
https://discourse.nativescript.org/t/lodash-library-in-nativescript-angular-app/4165
Any working solution on this?
Any help would be really appreciated. Thanks!