【发布时间】:2021-12-29 21:25:44
【问题描述】:
我正在尝试在我的 React 项目中使用 MUI 的数据网格组件。我已经使用 $npm i @mui/x-data-grid 安装了这个包。当我将 DataGrid 导入我的 React 组件并运行 $npm start 时,我收到以下 ENOENT 错误。有人知道为什么吗?
当import被注释掉后,错误消失:
我已采取的解决问题的步骤:
- 重启 VS 代码
- 重启我的电脑
- 从https://www.codejourney.net/2021/04/how-to-fix-npm-err-enoent-enoent-no-such-file-or-directory-rename/ 运行“修补程序”
【问题讨论】:
标签: reactjs npm visual-studio-code material-ui enoent