You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This error occurs when typing a value in any column filter or global filter. When trying to clean the value with the cross the error becomes uncaught and the app crashes.
Im using yarn and material-react-table works just perfect, the error only occurs in dev mode with yarn build and then serve -s build. yarn scripts launches regular react-scripts build
the full error message is
getFilteredRowModel.ts:94 Uncaught TypeError: Cannot read properties of undefined (reading 'id')
at n (getFilteredRowModel.ts:94:46)
at b (getFilteredRowModel.ts:92:66)
at getFilteredRowModel.ts:86:58
at Object._getFilteredRowModel (utils.ts:167:16)
at e.getFilteredRowModel (ColumnFiltering.ts:412:20)
at e.getPreGroupedRowModel (ColumnGrouping.ts:344:47)
at e.getGroupedRowModel (ColumnGrouping.ts:351:22)
at e.getPreSortedRowModel (RowSorting.ts:529:46)
at getSortedRowModel.ts:10:46
at Object._getSortedRowModel (utils.ts:152:21)
It happens even with the example data and columns from the documentations so I assume it has nothing to do with the project or data structure.
the other lib versions are:
"react-dom": "18.2.0",
"typescript": "^5.1.6"
Minimal, Reproducible Example - (Optional, but Recommended)
I now simplified it to the standard example, so
const table = useMaterialReactTable({
columns,
data, //must be memoized or stable (useState, useMemo, defined outside of this component, etc.)
enableRowSelection: true, //enable some features
enableColumnOrdering: true, //enable a feature for all columns
enableGlobalFilter: false, //turn off a feature
});
Screenshots or Videos (Optional)
Do you intend to try to help solve this bug with your own PR?
No, because I do not know how
Terms
I understand that if my bug cannot be reliably reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.
The text was updated successfully, but these errors were encountered:
material-react-table version
3.0.2
react & react-dom versions
18.2.0
Describe the bug and the steps to reproduce it
This error occurs when typing a value in any column filter or global filter. When trying to clean the value with the cross the error becomes uncaught and the app crashes.
Im using yarn and material-react-table works just perfect, the error only occurs in dev mode with
yarn build
and thenserve -s build
. yarn scripts launches regular react-scripts buildthe full error message is
It happens even with the example data and columns from the documentations so I assume it has nothing to do with the project or data structure.
the other lib versions are:
"react-dom": "18.2.0",
"typescript": "^5.1.6"
Minimal, Reproducible Example - (Optional, but Recommended)
I now simplified it to the standard example, so
const table = useMaterialReactTable({
columns,
data, //must be memoized or stable (useState, useMemo, defined outside of this component, etc.)
enableRowSelection: true, //enable some features
enableColumnOrdering: true, //enable a feature for all columns
enableGlobalFilter: false, //turn off a feature
});
Screenshots or Videos (Optional)
Do you intend to try to help solve this bug with your own PR?
No, because I do not know how
Terms
The text was updated successfully, but these errors were encountered: