question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issue with ra-ui-materialui?

See original GitHub issue

What 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.

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:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
fzaninottocommented, Jan 27, 2020

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?

0reactions
iNukeLaPestecommented, Jan 28, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found