简体   繁体   English

如何解决找不到模块错误:找不到模块:无法解析“@mui/icons-material/Adb”?

[英]How to solve module not found error : Module not found: Can't resolve '@mui/icons-material/Adb'?

I already install material-ui core by using this command.我已经使用此命令安装了 material-ui 内核。

 npm i @material-ui/core

But, after this when I run my reactjs code, it throws an error like this但是,在此之后,当我运行我的 reactjs 代码时,它会抛出这样的错误

 Module not found: Can't resolve '@mui/icons-material/Adb'

Please help me, how can I resolve this error?请帮助我,我该如何解决这个错误?

Thanks in advance提前致谢

@material-ui/core is the core package for MUI v4 , but @mui/icons-material is for MUI v5 , your code is using MUI v5. @material-ui/coreMUI v4的核心 package ,但@mui/icons-materialMUI v5 ,您的代码使用的是 MUI v5。 So here is what you need to install:所以这里是你需要安装的:
npm install @mui/icons-material

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

相关问题 找不到模块:无法解析“@mui/icons-material/FileDownload” - Module not found: Can't resolve '@mui/icons-material/FileDownload' 未找到模块:错误:无法解析 'D:\ 中的 '@mui/icons-material/Menu' - Module not found: Error: Can't resolve '@mui/icons-material/Menu' in 'D:\ MUI:找不到模块“找不到模块:错误:无法解析'时刻'” - MUI : Module not found "Module not found: Error: Can't resolve 'moment' " 如何解决“module not found can't resolve 'Api Client'”错误? - How to solve “module not found can't resolve 'Api Client'” error? 如何解决找不到模块:无法在 Material-UI 中解析“@babel/runtime/core-js/map” - How to solve Module not found: Can't resolve '@babel/runtime/core-js/map' in Material-UI 未找到 MUI 模块:无法解析“@emotion/react” - MUI Module not found: Can't resolve '@emotion/react' 在“@mui/icons-material/Send.js”中找不到 Material UI 图标 - Material UI Icon cannot be found in '@mui/icons-material/Send.js' 找不到 ChakraUI React 导入模块:无法解析“@public/icons” - ChakraUI React import Module not found: Can't resolve '@public/icons' 奇怪的“找不到模块:无法解决”错误 - Weird 'Module not found: Can't resolve' error 找不到模块:错误:无法解析“反应” - Module not found: Error: Can't resolve 'react'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM