I am attempting to use MUI’s Data Grid component in my React project. I have installed the package using $npm i @mui/x-data-grid. When I import DataGrid into my React component and run $npm start, I get the following ENOENT error. Anyone know why?
When the import is commented out, the error disappears:
Steps I’ve taken to resolve the issue:
- Restart VS Code
- Restart my computer
- Run the "hotfix" from https://www.codejourney.net/2021/04/how-to-fix-npm-err-enoent-enoent-no-such-file-or-directory-rename/
Source: React – Stack Overflow