Angular 如何更新ag网格版本?

Angular 如何更新ag网格版本?,angular,ag-grid,ag-grid-angular,Angular,Ag Grid,Ag Grid Angular,我以前用过: “ag网格”:“^18.1.2” “ag栅格角度”:“^18.1.1” “ag grid enterprise”:“^18.1.1”版本 由于执照过期了,我得到了新版本的执照 然后我补充说: “@ag-grid-community/angular”:“^22.1.1” “@ag网格社区/核心”:“^22.1.1” “@ag grid enterprise/all modules”:“^22.1.1” “@ag grid enterprise/core”:“^22.1.1” “

我以前用过:

  • “ag网格”:“^18.1.2”
  • “ag栅格角度”:“^18.1.1”
  • “ag grid enterprise”:“^18.1.1”版本
由于执照过期了,我得到了新版本的执照

然后我补充说:

  • “@ag-grid-community/angular”:“^22.1.1”
  • “@ag网格社区/核心”:“^22.1.1”
  • “@ag grid enterprise/all modules”:“^22.1.1”
  • “@ag grid enterprise/core”:“^22.1.1”
  • “@ag网格社区/客户端行模型”:“^22.1.1”
我还补充说

@import "./node_modules/@ag-grid-enterprise/all-modules/dist/styles/ag-grid.scss";
@import "./node_modules/@ag-grid-enterprise/all-modules/dist/styles/ag-theme-balham/sass/ag-theme-balham.scss";
@import "../node_modules/@angular/material/prebuilt-themes/deeppurple-amber.css";
style.css文件

但更新版本的ag网格中缺少行

如果你能给我一些建议,对我会有很大的帮助

这是ag网格的另一幅图像。

我认为您还需要将“ag grid”:“^18.1.2”升级为“ag grid angular”:“^20.1.0”,为此,您需要遵循更改

步骤1:转到package.json并将“ag网格”:“^18.1.2”修改为“ag网格角度”:“20.1.0”

步骤2:将typescript版本“typescript”:“~2.7.2”更改为“typescript”:“~3.2.4”

步骤3:在项目中运行npm更新


步骤4:现在运行ng serve

我认为您还需要将“ag grid”:“^18.1.2”升级为“ag grid ANGLATE”:“^20.1.0”,为此,您需要遵循更改

步骤1:转到package.json并将“ag网格”:“^18.1.2”修改为“ag网格角度”:“20.1.0”

步骤2:将typescript版本“typescript”:“~2.7.2”更改为“typescript”:“~3.2.4”

步骤3:在项目中运行npm更新


步骤4:现在运行ng serve

也许这会有所帮助……我的package.json看起来与你的略有不同:

"ag-grid-angular": "^22.1.1",
"ag-grid-community": "^22.1.1",
"ag-grid-enterprise": "^22.1.1",

也许这会有所帮助…我的package.json看起来与您的略有不同:

"ag-grid-angular": "^22.1.1",
"ag-grid-community": "^22.1.1",
"ag-grid-enterprise": "^22.1.1",

行中有哪些数据?您能提供一些代码供参考吗?行中有哪些数据?你能提供一些代码供参考吗