Solve Warning: The elevation provided <Paper elevation={24}> is not available in the theme.
in The not is gt lt 24 WARNING
2023-09-11 14:21:36 时间
If you got the following warning:
The elevation provided <Paper elevation={24}> is not available in the theme. Please make sure that `theme.shadows[24]` is defined
In order to mitigate this, you can change your shadows to a dictionary instead of array, for example:
const theme = createMuiTheme({ shadows: { 24: '0px 11px 15px -7px red,0px 24px 38px 3px red,0px 9px 46px 8px red', }, });
Or you can initialize shadows[24] with current existing item, for example:
const theme = createMuiTheme({ shadows: [ '0px 11px 15px -7px red,0px 24px 38px 3px red,0px 9px 46px 8px red', ], }); theme.shadows[24] = theme.shadows[0];
Refereces:
相关文章
- The superclass"javax.servlet.http.HttpServlet" was not found on the Java Build Path
- Azure 删除VHD时报错:There is currently a lease on the blob and no lease ID was specified in the request
- AuthenticationException: The remote certificate is invalid because of errors in the certificate chain: UntrustedRoot
- What's the difference between SDK and Runtime in .NET Core?
- Install the IIS 6.0 Management Compatibility Components in Windows 7 or in Windows Vista from Control Panel
- 报错:Flink Hadoop is not in the classpath/dependencies
- pip is configured with locations that require TLS/SSL, however the ssl module in Python is not avail
- 【转】JAVA错误:The public type *** must be defined in its own file***
- Error: [mobx] Since strict-mode is enabled, changing observed observable values outside actions is not allowed. Please wrap the code in an `action` if this change is intended.
- Linux有问必答:怎样解决“XXX is not in the sudoers file”错误
- “Location of the Android SDK has not been set up in the preferences”问题的解决
- Swift - whose view is not in the window hierarchy 问题解决方法
- Microsoft SQL Server 17导出xlsx文件时报错:The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine. (System.Data)
- Linux下is not in the sudoers file解决方法
- centos添加和删除用户及 xxx is not in the sudoers file.This incident will be reported.的解决方法
- ubuntu添加源报错The following signatures couldn't be verified because the public key is not available
- Package opencv was not found in the pkg-config search path. Perhaps you should add the directory con
- Unity 报错之 The type or namespace name ‘UI‘ does not exist in the namespace ‘UnityEngine‘
- 【RefactoringCode】The description of the refactoring book
- what is the difference between definition and declaration in c
- the solution about "messy code" in elicpse
- Maven错误:was cached in the local repository, resolution will not be reattempted until the update
- Abp ajax The required antiforgery request token was not provided in either form field
- Python version 3.6 required, which was not found in the registry错误解决
- Living in the Matrix with Bytecode Manipulation--转
- Using Headless Mode in the Java SE Platform--转
- Eclipse Maven项目出现“The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path”
- ParticleSfM:Exploiting Dense Point Trajectories for Localizing Moving Cameras in the Wild——论文笔记