After adding lodash to my Angular 2 project, I encountered a significant number of errors. To troubleshoot, I created a new project using the CLI: ng new tester
, then I added lodash with npm install --save @types/lodash
. When I ran ng serve
, I received the following error stack:
ERROR in /Users/bradley/Work/test/tester2/node_modules/@types/lodash/index.d.ts (11502,21): ']' expected.
/Users/bradley/Work/test/tester2/node_modules/@types/lodash/index.d.ts (11502,22): ';' expected.
...
(User/bradley/Work/test/tester2/node_modules/@types/lodash/index.d.ts (19507,33): Cannot find name 'object'.
I would appreciate any insights on what might be causing this issue.