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.

Slight improvement to the v1-alpha docs

See original GitHub issue

Trying out an example like AppBar fails with

TypeError: this.context.styleManager is undefined
render
node_modules/material-ui/styles/withStyles.js:98

   95 | 
   96 | 
   97 | var classes = void 0;
>  98 | var renderedClasses = this.context.styleManager.render(styleSheet);
   99 | 
  100 | if (classesProp) {
  101 |   classes = (0, _extends3.default)({}, renderedClasses, (0, _keys2.default)(classesProp).reduce(function (acc, key) {

Wrapping that component in a <MuiThemeProvider/> (as mentioned in the Usage page) solves the issue.

But there might be people landing directly on that page or noobs like me that forget. Maybe add a generic App.js that ends up including the component ? Willing to do the work if it sounds fine.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
oliviertassinaricommented, Jul 14, 2017

I have updated the link to the usage section.

0reactions
oliviertassinaricommented, Jul 12, 2017

At least adding a link back to Usage would be good.

Do you mean for the warning message? Yes, that sounds like a good idea!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Slight improvement to the v1-alpha docs · Issue #7417 · mui/material ...
Trying out an example like AppBar fails with TypeError: this.context.styleManager is undefined render node_modules/material-ui/styles/withStyles.js:98 95 ...
Read more >
Package google.identity.accesscontextmanager.v1alpha
An access policy is globally visible within an organization, and the restrictions it specifies apply to all projects within an organization. Fields. name....
Read more >
API Changelog | Google Earth Engine
Improved the user interface for Earth Engine App creation and management flows. ... Expanded only exact matches on API documentation search in Code...
Read more >
API Versioning - VMware Docs
Upgrade to a minor version to use the features and improvements in ... When stable versions become available, v1 beta and v1 alpha...
Read more >
API Overview | Kubernetes
Built-in beta API versions have a maximum lifetime of 9 months or 3 minor releases (whichever is longer) from introduction to deprecation, ...
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