Rares-Stefan Florea
Rares-Stefan Florea

Reputation: 1

React-admin does not run after migration from admin-on-rest

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:

error 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

Answers (1)

Gildas Garcia
Gildas Garcia

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

Related Questions