The following commands are required for normal angular installation of echarts
1 npm install echarts -S
2 npm install ngx-echarts -S
However, an error prompt is found after installation, and the type is marked in red in the file reference
1. The following commands need to be executed
1 npm install echarts -S
2 npm install ngx-echarts -S
3 npm install @types/echarts -D
2. Introduce modules into modules (such as app.Module.TS):
1 import { NgxEchartsModule } from 'ngx-echarts';
2 @NgModule({
3 imports: [
4 ...,
5 NgxEchartsModule
6 ],
7 })
8 export class AppModule { }
Read More:
- Echars 5.0 Import Error: “export ‘default’ (imported as ‘echarts’) was not found in ‘echarts’
- The use of vue-echarts and compilation error solutions
- [Solved] Echarts Error: Cannot read property ‘init‘ of undefined
- [Solved] ECharts Console Error: `resize` should not be called during main process
- [Solved] Angular Start Project Error: The target entry-point “ngx-echarts“ has missing dependencies: – @juggle/resi
- [Solved] Mpvue+Echarts error: ‘regions‘undefined
- VUE Echarts Loading Error TypeError: Cannot read property getAttribute of null?
- How to Solve Import antd Error: Module build failed
- Kotlin: How to Solve kapt import error
- How to Solve ImportError: cannot import name gof
- How to Solve Kotlin unresolved reference error
- How to Solve Client-go Mod Error
- How to Solve SpringBoot MongoDB MongoAutoConfiguration Startup Error
- How to Solve Angular Error: error NG8002: Can‘t bind to ‘ngModel‘ since it isn‘t a known property of ‘input‘.
- How to Solve screenfull plug-in Error (Version Issues)
- How to Solve PageHelper.startPage count Error
- How to Solve Error: Module did not self-register
- How to Solve Error: Failure [INSTALL_FAILED_TEST_ONLY: installPackageLI]
- How to Solve Keras calls plot_model error
- How to Solve DVA switches history to browserhistory Error