I have attempted to install various versions of highcharts-angular, ranging from 2.0.0 to 2.10.0. However, I consistently encounter the same error when running the application.
The error message states: Metadata version mismatch for module C:/dev/Angular-WorkSpace/ma-property-report/node_modules/highcharts-angular/highcharts-angular.d.ts, found version 4, expected 3, while trying to resolve symbol SharedModule in C:/dev/Angular-WorkSpace/ma-property-report/src/app/shared/shared.module.ts.
Screenshot of the Error Message
In my search online, I discovered that these errors may occur if the dependency (highcharts-angular) is not compatible with Angular 4. At this moment, upgrading to Angular 5 is not an option for me.
Even after downgrading the highcharts-angular versions all the way to 2.0.0, the Metadata version mismatch persists. This leads me to question whether Angular 4 supports highcharts-angular (Highcharts wrapper for Angular), and if so, how can I resolve this error?
npm -v
6.14.8
@angular/cli: 1.2.7 // global Angular CLI version = 6.2.9
node: 8.17.0
os: win32 x64
Please take a look at my package.json file below:
{
"name": "underwriter-web",
"version": "0.0.0",
"license": "MIT",
...