Issue with ra-ui-materialui?
See original GitHub issueWhat you were expecting:
Yesterday everything was working fine and I’m wondering if this is because of an update on your side. I was expecting to get access to my interface.
What happened instead:
Got this issue in ra-ui-materialui
and I don’t know why:
TypeError: Cannot read property 'breakpoints' of null
(anonymous function)
node_modules/ra-ui-materialui/esm/layout/AppBar.js:71
68 | var children = _a.children, classesOverride = _a.classes, className = _a.className, logo = _a.logo, logout = _a.logout, open = _a.open, title = _a.title, userMenu = _a.userMenu, rest = __rest(_a, ["children", "classes", "className", "logo", "logout", "open", "title", "userMenu"]);
69 | var classes = useStyles({ classes: classesOverride });
70 | var dispatch = useDispatch();
> 71 | var isXSmall = useMediaQuery(function (theme) { return theme.breakpoints.down('xs'); });
| ^ 72 | return (React.createElement(HideOnScroll, null,
73 | React.createElement(MuiAppBar, __assign({ className: className, color: "secondary" }, rest),
74 | React.createElement(Toolbar, { disableGutters: true, variant: isXSmall ? 'regular' : 'dense', className: classes.toolbar },
Steps to reproduce:
Followed the demo, and started adding a few things. Everything was working fine until today. I am not 100% sure if this is on my side or not, so sorry in advance if not.
Related code:
Let me know if I can join anything.
- Preferably, a CodeSandbox forked from https://codesandbox.io/s/github/marmelab/react-admin/tree/master/examples/simple
- A link to a GitHub repo with the minimal codebase to reproduce the issue
insert short code snippets here
Other information:
Sorry in advance if my request is not good enough, I’m still a beginner. Please, let me know.
Environment
- React-admin version: 3.0.3 (but having same issue with 3.1.3)
- Last version that did not exhibit the issue (if applicable):
- React version: 16.12.0
- Browser: Chrome
- Stack trace (in case of a JS error):
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Error in dependency package "ra-ui-materialui" used by react ...
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"....
Read more >ra-ui-materialui - npm
ra -ui-materialui. TypeScript icon, indicating that this package has built-in type declarations. 4.6.2 • Public • Published 3 days ago.
Read more >ra-ui-materialui examples - CodeSandbox
Ra Ui Materialui Examples. Learn how to use ra-ui-materialui by viewing and forking example apps that make use of ra-ui-materialui on CodeSandbox.
Read more >ra-supabase-ui-materialui - npm package - Snyk
The npm package ra-supabase-ui-materialui was scanned for known vulnerabilities and missing license, and no issues were found. Thus the package was deemed as ......
Read more >React-admin - FAQ - Marmelab
React Admin users and third-party libraries maintainers might have noticed that the default UI template ra-ui-materialui has @material-ui/core@^1.4.0 as ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
What’s the version of material-ui that you’ve installed? Can you check in your packages.lock that there is only one version installed?
Needed to add
@material-ui/core
but it didn’t work when I first tried. Now it works, thank you!"@material-ui/core": "^4.5.1"
Sorry for the issue.