Rahul
Rahul

Reputation: 31

ag-grid @version v17.1.1 Cannot read property 'create' of undefined

I am using ag grid 17.0.1 version and its working fine in local development. But after prod build i am testing in my uat environment. i am getting - Cannot read property 'create' of undefined I debug the code after adding source-map. gridCore.js is throwing the error. its not even rendering my grid in UI. I know dev and prod build are different. What's changing after prod build and why is it working in dev not prod.

var GridCore = (function () {
    function GridCore(loggerFactory) {
        this.destroyFunctions = [];
        this.logger = loggerFactory.create('GridCore'); // loggerFactory is undefined which is causing the problem 
    }

Upvotes: 0

Views: 1076

Answers (1)

Syed Abbas
Syed Abbas

Reputation: 49

Even I faced the issue, as per Ag-Grid Compatibility chart, Ag-Grid version should be in between 18-23 for Angular Version 7-9+.

Source: https://www.ag-grid.com/angular-grid/#compatibility

Upvotes: 1

Related Questions