Since today morning we are getting below issue, After building latest node_modules :
**methods.js?ab36:59 Uncaught (in promise) TypeError: Cannot read property 'forEach' of undefined
at ReactTable.getDataModel (methods.js?ab36:59)
Since today morning we are getting below issue, After building latest node_modules :
**methods.js?ab36:59 Uncaught (in promise) TypeError: Cannot read property 'forEach' of undefined
at ReactTable.getDataModel (methods.js?ab36:59)
Look at this: https://github.com/tannerlinsley/react-table/issues/1686 and try a downgrade.
P.S. Please be more accurate on your questions
I had this error. In my case, the fix was much simpler than those suggested the above. React-table MUST be given a list. My fetch (GET request) was returning an object which I did not anticipate. React-table needs a list to iterate over, NOT an object. An array/list of objects is a list.
The fix was to use [ ] around the fetched object because this made it a list of a single object. React-table could then iterate over this list.
For example, React-table can't iterate over the following object:
{key1:pair1}
But it CAN iterate over this similar array containing one object, notice the square brackets:
[{key1:pair1}]
© 2022 - 2025 — McMap. All rights reserved.