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.

TypeError: Cannot read property 'dense' of undefined

See original GitHub issue

when I use the material-ui in client side ,there is no problem, but when i use the material-ui’s server rendering, once I use the <ListItem> component , there is a error: TypeError: Cannot read property ‘dense’ of undefined the total info: Warning: Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead? Warning: Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead? TypeError: Cannot read property ‘dense’ of undefined at Object.eval [as children] (webpack:///./node_modules/@material-ui/core/ListItem/MergeListContext.js?:28:38) at recursive (C:\Users\Administrator\Desktop\webpack-demo\node_modules\react-tree-walker\dist\react-tree-walker.js:129:41) at C:\Users\Administrator\Desktop\webpack-demo\node_modules\react-tree-walker\dist\react-tree-walker.js:153:26

The server rendering config almost same as the official website,at present, the server work out only when I use the <ListItem> component.

Your Environment 🌎

Tech Version
Material-UI v3.5.1
React 16.6.0
Browser chrome
Node 10.13.0
etc.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
joshwoodingcommented, Feb 18, 2019

@flamecoals Do you have a minimal reproducible example?

0reactions
vdfdevcommented, Feb 18, 2019

I can confirm that downgrading to 3.3.0 works, but still getting this error when using the latest version. I will try to setup a minimal example.

Read more comments on GitHub >

github_iconTop Results From Across the Web

javascript - TypeError: Cannot read properties of undefined ...
1. The error means that target. · okay that works but, it doesn't show the server member since timestamp properly. – Saharsh ·...
Read more >
TypeError: Cannot read property 'dense' of undefined #13716
when I use the material-ui in client side ,there is no problem, but when i use the material-ui's server rendering, once I use...
Read more >
Cannot Read Property of Undefined in JavaScript - Rollbar
TypeError: Cannot read property of undefined occurs when a property is read or a function is called on an undefined variable.
Read more >
Script error - TypeError: cannot read property 'ended' of ...
I'm getting an error on my project where in a particular script, I get the error: TypeError: cannot read property 'ended' of undefined...
Read more >
TypeError: Cannot read property 'substring' of undefined - Reddit
So, I'm making a discord bot, and when I try and do a command, it doesn't work, and I end up with an...
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