Reputation: 61
I am using Material-table in reactjs to display data. However, it compiles with the warning:
Uncaught TypeError: props.theme is undefined
renderFooter material-table.js:872
render material-table.js:1019
React 17
js index.js:7
factory react refresh:6
Webpack 3
I keep getting blank screen with this error, hence, can't proceed with my project.
Upvotes: 3
Views: 1250
Reputation: 45
same error. Did a clean install and used material-table-crud example just now
Fixed it now. Updated everything in the project. Deleted node modules etc.
"material-table": "^1.69.3"
Upvotes: 1
Reputation: 1
Use import { ThemeProvider } from '@mui/styles'
instead of import { ThemeProvider } from '@material-ui/styles'
; maybe that will solve the issue.
Upvotes: 0