【问题标题】:Material table Can't resolve '@material-ui/core/Icon' in mui 5?材质表无法解析 mui 5 中的“@material-ui/core/Icon”?
【发布时间】:2022-01-04 18:05:13
【问题描述】:

我在nextjs 上使用mui5。这里对于数据表,我尝试使用Material Table。但有时我会看到一个错误--Can't resolve '@material-ui/core/Icon'..

我一直没有看到这个错误。我会在某个时间或每隔一两天看到它。然后,当我重新安装材料表时,它会得到修复。谁能推荐我?

【问题讨论】:

    标签: reactjs material-ui next.js material-table


    【解决方案1】:

    这是因为您使用的是旧版本的material-table

    这个包好像没有更新到使用Material ui v5。

    https://github.com/mbrn/material-table/issues/3041

    或者您需要使用material-table-core 来代替它。

    https://material-table-core.com/docs/material-ui-v5/

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-10-24
      • 2021-11-16
      • 1970-01-01
      • 1970-01-01
      • 2021-07-25
      • 1970-01-01
      • 2021-05-05
      • 2021-04-13
      相关资源
      最近更新 更多