📅  最后修改于: 2022-03-11 14:58:52.493000             🧑  作者: Mango
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.