gpt4 book ai didi

javascript - 使用 Appbar 组件在 'useInsertionEffect' 中找不到 Material ui 导出 'useInsertionEffect$1'(导入为 'react')

转载 作者:行者123 更新时间:2023-12-05 00:25:09 35 4
gpt4 key购买 nike

here is the error.
1 : /image/Y2Zdo.png**strong文字** enter image description here
在这里,我正在尝试使用 Material ui 的 Appbar 组件,但出现此错误

最佳答案

这是 was caused by 的错误。 useInsertionEffect正在 referenced directly在 import 语句的说明符列表中( React.useInsertionEffect 而不是 React['useInsertion' + 'Effect'] )。
is fixed截至@emotion/react@11.8.1 - 升级到那个版本,错误应该会消失。

关于javascript - 使用 Appbar 组件在 'useInsertionEffect' 中找不到 Material ui 导出 'useInsertionEffect$1'(导入为 'react'),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/71185635/

35 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com