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.

Warning: Failed prop type: Material-UI: This elevation `4` is not implemented

See original GitHub issue

I implemented the Permanent Drawer from the demo on Material UI’s website, but both the Drawer and AppBar give this warning in the console.

  • The issue is present in the latest release.
  • I have searched the issues of this repository and believe that this is not a duplicate.

Current Behavior 😯

PropType errors

Expected Behavior 🤔

Should not see a propType Error

Steps to Reproduce 🕹

Steps:

Context 🔦

Your Environment 🌎

`npx @material-ui/envinfo`
  Don't forget to mention which browser you used.
  Output from `npx @material-ui/envinfo` goes here.

Issue Analytics

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

github_iconTop GitHub Comments

3reactions
oliviertassinaricommented, Jun 12, 2021

Maybe you wrote elevation="4" instead of elevation={4}, providing a string instead of a number. I have no idea, we can’t debug it if we can’ reproduce it.

2reactions
IntellectualCreaturescommented, Jun 12, 2021

In AppBar, write <AppBar elevation={0} />. It works for me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Warning: Failed prop type: Material-UI: This elevation `4` is not ...
I implemented the Permanent Drawer from the demo on Material UI's website, but both the Drawer and AppBar give this warning in the...
Read more >
Failed proptype classes material-ui - reactjs - Stack Overflow
I have this warning in my console:index. js:2178 Warning: Failed prop type: The prop classes is marked as required in WithStyles(Grid) , but ......
Read more >
Migration from v3 to v4 - Material UI - MUI
This is a reference for upgrading your site from Material UI v3 to v4. ... Normalized value prop type for input components to...
Read more >
Breaking changes in v5, part two: core components - Material UI
Stepper no longer has elevation, and it does not inherit props from Paper anymore. This change is meant to encourage composition. +<Paper square...
Read more >
Dialog API - Material UI - MUI
API reference docs for the React Dialog component. Learn about the props, CSS, and other APIs of this exported module.
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