const useStyles1 = makeStyles(theme => ({
success: {
backgroundColor: green[600],
},
message: {
display: 'flex',
alignItems: 'center',
},
iconVariant: {
opacity: 0.9,
marginRight: theme.spacing(1),
},
icon: {
fontSize: 20,
}
}));
错误出现在第一行。我试过更改react和react dom的版本。当前版本是
“ react”:“ ^ 16.8.6”,
“ react-dom”:“ ^ 16.8.6”,