我将逐步将 Angular 从 v15 更新到 v19。当我将 Angular 从 v15 更新到 v16 时,出现以下
ng-apexchart
错误:
Error: node_modules/ng-apexcharts/lib/chart/chart.component.d.ts:33:56 - error TS2694: Namespace '"E:/Sugnay/organictechmedia/node_modules/@angular/core/index"' has no exported member 'InputSignal'.
33 readonly autoUpdateSeries: import("@angular/core").InputSignal<boolean>; ~~~~~~~~~~~
Error: node_modules/ng-apexcharts/lib/chart/chart.component.d.ts:34:50 - error TS2694: Namespace '"E:/Sugnay/organictechmedia/node_modules/@angular/core/index"' has no exported member 'OutputEmitterRef'.
34 readonly chartReady: import("@angular/core").OutputEmitterRef<{
当前 Apexchart 版本:
"ng-apexcharts": "^1.15.0"
,
任何人都可以建议 ng-apexchart 版本吗?该版本兼容 Angular v19。
角度 v16 的错误已解决:
我已经安装了 ng-apexcharts v1.8.0 并且运行良好。
npm i [email protected]