kithmi
kithmi

Reputation: 85

How to update ag-grid versions?

Previously I used:

Since the licence was expired I got the new version licences.

And then I added:

And also I added

@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";

to styles.css file.

But row lines are missed in ag-grid for an updated version.image description here

If you can give me suggestions it will be a great help for me.

This is another image of ag-grid. enter image description here

Upvotes: 1

Views: 6806

Answers (2)

Priyanka Saini
Priyanka Saini

Reputation: 15

I think you also need to upgrade "ag-grid": "^18.1.2", to "ag-grid-angular": "^20.1.0", to do so you need to follow changes

Step1: go to package.json and modify "ag-grid": "^18.1.2", to "ag-grid-angular": "20.1.0",

Step2: change your typescript version "typescript": "~2.7.2" to "typescript": "~3.2.4"

Step3: Run npm update in your project.

Step4: now run ng serve

Upvotes: 0

Alexander Zbinden
Alexander Zbinden

Reputation: 2541

Maybe this helps...my package.json looks slightly different than yours:

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

Upvotes: 1

Related Questions