Search code examples
reactjsag-grid-react

Uncaught TypeError: can't access property "newAgStackInstance", compDetails is undefined


  const defaultColDef = useMemo(() => {
return {
  menuTabs: ["generalMenuTab"],
  editable: true,
  sortable: true,
  flex: 1,
  minWidth: 100,
  filter: true,
  resizable: true,
  //This is the erroneous part
  headerComponent: CustomHeader,
};
}, []);

Is this syntax deprecated ? I can't find anything related to this in the internet.

Thanks in advance.


Solution

  • You need to replace headerComponent with headerComponentFramework. I'm guessing their documentation is just outdated