无法在 material-ui 按钮组件中读取 null 的属性(读取 'pulsate')

Cannot read properties of null (reading 'pulsate') in material-ui Button component

这是我正在使用的material-ui版本:

"@mui/icons-material": "^5.5.1",
"@mui/material": "^5.5.1",

我是这样导入 Button 组件的:

import Button from "@mui/material/Button";

这就是我使用 Button 的方式:

<Button variant="contained"
   className={styles.contactBtn}
   autoFocus
   onClick={handleClose}
>
   Close
</Button>

我收到这样的错误:无法读取 null 的属性(读取 'pulsate')

我从 github Link 找到了这个帖子(解决方案),但它没有解决我的问题。 我该如何解决这个问题?

I tried removing each prop in button and checked whether it is working or not.

I found, button works without autoFocus prop.

<Button variant="contained"
   className={styles.contactBtn}
   onClick={handleClose}
>
   Close
</Button>