I am using AG Grid Community in JavaScript. After upgrading to AG Grid v32.0.0, my grid is stuck in the loading phase.
Image of my Grid stuck on loading
In the console, I encounter the following error:
ag-grid-community.min.js:1 Uncaught TypeError: Cannot read properties of null (reading 'addEventListener')
at new ja (ag-grid-community.min.js:1:158462)
at Ya.setupTap (ag-grid-community.min.js:1:165815)
at Ya.init (ag-grid-community.min.js:1:164833)
at e.initComponent (ag-grid-community.min.js:1:199215)
at e.newAgStackInstance (ag-grid-community.min.js:1:198867)
at Object.newAgStackInstance (ag-grid-community.min.js:1:198231)
at Dr.setUserCompDetails (ag-grid-community.min.js:1:359984)
at Object.setUserCompDetails (ag-grid-community.min.js:1:359462)
at Kr.setCompDetails (ag-grid-community.min.js:1:387768)
at Kr.setupUserComp (ag-grid-community.min.js:1:387699)
After investigating, I discovered that if the filter property in gridOptions is set to anything other than false, the grid fails to load. Reverting to the previous version of AG Grid resolves the issue:
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/ag-grid-community.min.js"></script>
It seems that the new version introduced a bug related to filters. Any insights or solutions would be greatly appreciated.
Thank you in advance for your help!
Andreas Bougiouklis is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.