react-admin: Error in dependency package "ra-ui-materialui" used by react-admin

Hi Team, I am currently facing a issue which appears to be appearing from one of the dependent package used by react-admin which is “ra-ui-materialui”.

It says "./node_modules/ra-ui-materialui/esm/layout/DeviceTestWrapper.js Attempted import error: ‘createTheme’ is not exported from ‘@material-ui/core/styles’ ". I am using “react-admin”: “^3.17.0”.

Following are the some of the package version which I m using.

"@material-ui/core": "4.11.4", "@types/react": "^16.14.11", "react-admin": "^3.17.0". "react": "^16.13.1", "typescript": "~3.8",

Due to above reason, my code has stopped working. If you need anything else please let me know.

Capture1

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 1
  • Comments: 37 (12 by maintainers)

Most upvoted comments

I can confirm that after include the package @material-ui/core”: “4.12.1” the issue is fixed. But it is only a patch, I understand that it is so

Thank you