由于依赖冲突,无法在 Angular 16 中使用 ng-apexchart

问题描述 投票:0回答:1

我将逐步将 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。

angular ng-apexcharts
1个回答
0
投票

角度 v16 的错误已解决:

我已经安装了 ng-apexcharts v1.8.0 并且运行良好。

npm i [email protected]
© www.soinside.com 2019 - 2024. All rights reserved.