简体   繁体   English

尝试导入错误:“useThemeVariants”未从“@material-ui/styles”导出

[英]Attempted import error: 'useThemeVariants' is not exported from '@material-ui/styles'

Does anybody know why am I getting this error and how should I fix it?有谁知道我为什么会收到这个错误,我应该如何解决它?

I have tried nuking the node modules and re-installing, also tried with former versions.我曾尝试使用 nuking 节点模块并重新安装,也尝试过使用以前的版本。 Nothing seems to work.似乎没有任何效果。

This error happens when you update MaterialUI to version 5.0.0-alpha.5 .当您将 MaterialUI 更新到版本5.0.0-alpha.5时会发生此错误。 Updating your package to the next version ( 5.0.0-alpha.6 ) will fix it.将您的包更新到下一个版本 ( 5.0.0-alpha.6 ) 将修复它。

Related issue .相关问题

编辑 dazzling-monad-06735

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 尝试导入错误:“makeStyles”未从“@material-ui/core/styles”导出 - Attempted import error: 'makeStyles' is not exported from '@material-ui/core/styles' 尝试导入错误:“fade”未从“@material-ui/core/styles”导出 - Attempted import error: 'fade' is not exported from '@material-ui/core/styles' 尝试导入错误:“alpha”未从“@material-ui/core/styles”导出 - Attempted import error: 'alpha' is not exported from '@material-ui/core/styles' 尝试导入错误:“ImageList”未从“@material-ui/core”导出 - Attempted import error: 'ImageList' is not exported from '@material-ui/core' 尝试导入错误:“ToogleButton”未从“@material-ui/lab”导出 - Attempted import error: 'ToogleButton' is not exported from '@material-ui/lab' 尝试导入错误:“GlobalStyles”未从“@material-ui/system”导出(导入为“SystemGlobalStyles”) - Attempted import error: 'GlobalStyles' is not exported from '@material-ui/system' (imported as 'SystemGlobalStyles') 错误尝试导入错误:“NotificationsNoneIcon”未从“@material-ui/icons”导出 - error Attempted import error: 'NotificationsNoneIcon' is not exported from '@material-ui/icons' 尝试导入错误:“unstable_useId”未从“@material-ui/core/utils”导出(导入为“useId”) - Attempted import error: 'unstable_useId' is not exported from '@material-ui/core/utils' (imported as 'useId') 尝试导入错误:“useControlled”未从“@material-ui/core/utils”导出 - Attempted import error: 'useControlled' is not exported from '@material-ui/core/utils' 尝试导入错误:'styles' 未从 './styles' 导出 - Attempted import error: 'styles' is not exported from './styles'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM