我有问题,更改表格页面,它显示错误,无论是否单击更改页面按钮错误看起来像这样

降级资料-ui/core对我没有帮助这是我的库版本
"@material-ui/core": "^4.12.2",
"@testing-library/jest-dom": "^5.14.1",
"@testing-library/react": "^11.2.7",
"@testing-library/user-event": "^12.8.3",
"material-table": "^1.69.3",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-scripts": "4.0.3",
"web-vitals": "^1.1.2"发布于 2021-07-30 07:29:19
@material/core@4.12.2的版本导致了这个问题,这是由于TablePagination中不推荐使用的方法造成的。因为material-table使用了这个,并且没有升级这些不推荐使用的方法,所以抛出了错误。(在4.12.1中也发生了!)
将@material-ui/core版本降级至4.11.4,并保持material-table版本为1.69.3。
https://stackoverflow.com/questions/68586886
复制相似问题