📌  相关文章
📜  . src components forms authorBioForm.jsx 找不到文件:'index.js' 与磁盘上的相应名称不匹配:'F:\code\pepcoding\react\node_modules\@material-ui\core\esm\React'. - 无论代码示例

📅  最后修改于: 2022-03-11 14:58:52.493000             🧑  作者: Mango

代码示例1
Cannot find file: 'index.js' does not match the corresponding name on disk React js


In my case, I had used old / wrong import statements. 
This can sometimes indicate a problem with your node_modules. 

Material ui has moved away from the '@material-ui/core/IconButton' to the '@mui/material/IconButton' import statement style.
the error was thrown in every file where I had the wrong import statement.
Update the import statements to the correct ones and your errors will start disappearing one by one.