ENOENT on npm start error. Why am I getting this error and why is it looking for "My Pictures" directory?

I am attempting to use MUI’s Data Grid component in my React project. I have … Read more ENOENT on npm start error. Why am I getting this error and why is it looking for "My Pictures" directory?

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?

Image of the import and error in console

When the import is commented out, the error disappears:

enter image description here

Steps I’ve taken to resolve the issue:

  1. Restart VS Code
  2. Restart my computer
  3. 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



Leave a Reply

Your email address will not be published. Required fields are marked *