Reputation: 1552
My project was running in Angular 6 with all the packages working properly.
But, when I tried to update it to Angular 8, it gives me the following error while ng serve
Module '"*/node_modules/ngx-echarts/ngx-echarts"' has no exported member 'NgxEchartsService'.
I need the solution for the above issue. Currently, I have updated all the dependencies to Angular 8.
The current version on ngx-echarts is 4.2.2
Thanks in Advance.
Upvotes: 0
Views: 1996
Reputation: 186
upgrade ngx-echarts to ^5.0.0 and change module import to this, i hope help
import { NgxEchartsModule } from 'ngx-echarts';
import * as echarts from 'echarts';
@NgModule({imports: [NgxEchartsModule.forRoot({echarts})]}) export class AppModule {}
Upvotes: 2