Reputation: 376
Error in ./node_modules/highcharts/highcharts.js 8:5207 Module parse failed: Unexpected token (8:5207) You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
I have an Angular 10 app and importing highcharts into components using the command "import * as Highcharts from 'highcharts'
".
I am trying to update from 8.2.2 to version 11.2.0 and getting the above error.
Upvotes: 0
Views: 437
Reputation: 303
verify that you have that in provider table import :
import {HighchartsChartModule} from "highcharts-angular";
imports: [
//others modules ...
HighchartsChartModule,
]
and in ts file use that :
import * as Highcharts from 'highcharts';
Upvotes: 1