I have tried to use lodash for datatable. Here is what I have tried:
npm install lodash - gave cannot find package error
searched issue and then tried npm install --save @types/lodash
this produced following output:
+-- UNMET DEPENDENCY @angular/common@~2.1.0
+-- UNMET PEER DEPENDENCY @angular/[email protected] invalid
+-- UNMET DEPENDENCY @angular/core@~2.1.0
`-- @types/[email protected]
which I dont understand, since my package.json has following:
"@angular/common": "~2.1.0",
"@angular/compiler": "~2.1.0",
"@angular/core": "~2.1.0",
after this, IDE can find package, but when I run npm start/ng serve I get multiple errors
ERROR in [default] path\node_modules\@types\lodash\index.d.ts:192 81:20 Cannot find namespace '_'.
ERROR in [default] path\node_modules\@types\lodash\index.d.ts:190 21:57 Cannot find name 'Many'.
ERROR in [default] path\node_modules\@types\lodash\index.d.ts:194 41:0 Declaration or statement expected.
and first two errors repeat multiple times each, but with different number (i guess line)
What should i do, to solve this issue?