[英]Why am I getting this error when using Material UI?
I used npm install @mui/material
and npm install @mui/icons-material
right after to import a search icon.我使用
npm install @mui/material
和npm install @mui/icons-material
导入搜索图标。 my code looks like this我的代码看起来像这样
import {Search} from "@mui/icons-material";
However, when I write it in my code as <Search />
I get this error.但是,当我在代码中将其编写为
<Search />
时,我会收到此错误。
What is the issue?问题是什么?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.