When attempting to execute the ng serve
command, I encountered an error. See below for more details.
ERROR in node_modules/@types/lodash/common/collection.d.ts(1783,24): error TS2304: Cannot find name 'Exclude'. ... (error list continued) ... src/app/dashboard/dashboard.component.ts(5,21): error TS2307: Cannot find module 'chart.js/src/chart.js'.
Here is a snippet from my package.json file:
{
"name": "TestApplication",
"version": "0.0.0",
"license": "MIT",
... (package.json contents omitted for brevity) ...
}
I have already tried the following steps:
- Ran npm install
- Updated TypeScript version to 2.8
- Deleted node_modules and reinstalled using npm install
- Ensured all components are up to date
If you have any suggestions or ideas, please feel free to share. Thank you!