[英]Attempted import error: 'GlobalStyles' is not exported from '@material-ui/system' (imported as 'SystemGlobalStyles')
./node_modules/@material-ui/core/GlobalStyles/GlobalStyles.js Attempted import error: 'GlobalStyles' is not exported from '@material-ui/system' (imported as 'SystemGlobalStyles'). ./node_modules/@material-ui/core/GlobalStyles/GlobalStyles.js 尝试导入错误:“GlobalStyles”未从“@material-ui/system”导出(导入为“SystemGlobalStyles”)。
I'm facing this problem and I can't understand in which file it's occuring.我正面临这个问题,我无法理解它发生在哪个文件中。
I found the solution to this question.我找到了这个问题的解决方案。
Delete @material-ui
folder from node_modules
.从
node_modules
中删除@material-ui
文件夹。
Run npm i @mui/material
in the terminal.在终端中运行
npm i @mui/material
。
Check for the correct spellings in the import statement.检查导入语句中的正确拼写。 It should be
from "@material-ui/core"
;它应该
from "@material-ui/core"
;
This worked for me!这对我有用! :)
:)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.