Reputation: 1
After migrating from admin-on-rest to react-admin and running npm start, the create-react-app does not throw any errors, but the console is throwing the following error:
Uncaught TypeError: Cannot read property 'prepareStyles' of undefined
having the following stacktrace:
Environment: Windows 10, Chrome
Dependencies:
"material-ui": "^0.20.1",
"react": "15.6.1",
"react-admin": "^2.0.3",
"react-dom": "15.6.1",
"react-redux": "^5.0.7",
"redux": "^4.0.0",
"redux-form": "^7.4.2"
Upvotes: 0
Views: 163
Reputation: 7066
React-admin uses material ui v1. You're using an old version of material-ui.
PS: Just in case you don't already know, we have an upgrade guide which might help
Upvotes: 1