首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法解析'@material-ui/core/TableContainer

无法解析'@material-ui/core/TableContainer
EN

Stack Overflow用户
提问于 2020-02-14 15:49:45
回答 2查看 3.3K关注 0票数 5

我想为我的react应用程序导入表容器。但我不能使用它,因为我的材料ui版本错误。如何将我的版本更新到最新版本。我想这就是那个错误的解决方案。我已经尝试了npm uninstall和npm uninstall,但是还没有解决。帮帮我。

代码语言:javascript
复制
{
  "name": "material-dashboard-react",
  "version": "1.6.0",
  "description": "Material Dashboard React. Coded by Creative Tim",
  "private": false,
  "main": "dist/index.js",
  "dependencies": {
    "@khanacademy/react-multi-select": "^0.3.3",
    "@lls/react-light-calendar": "^2.0.7",
    "@material-ui/core": "^3.9.4",
    "@material-ui/icons": "3.0.2",
    "@progress/kendo-react-dropdowns": "^3.4.1",
    "@progress/kendo-react-intl": "^3.4.1",
    "animate.css": "^3.7.2",
    "axios": "^0.19.1",
    "bootstrap": "^4.3.1",
    "chartist": "0.10.1",
    "classnames": "2.2.6",
    "firebase": "^7.0.0",
    "history": "4.7.2",
    "jquery": "^1.9.1",
    "material-ui-next-responsive-table": "^0.5.1",
    "multi-select-react": "^0.1.8",
    "multiselect-dropdown-react": "^1.0.5",
    "multiselect-react-dropdown": "^1.2.4",
    "perfect-scrollbar": "1.4.0",
    "prettier": "1.16.4",
    "prop-types": "15.7.1",
    "react": "^16.8.1",
    "react-bootstrap": "^1.0.0-beta.12",
    "react-bootstrap-dialog": "^0.13.0",
    "react-bootstrap-modal": "^4.2.0",
    "react-chartist": "0.13.3",
    "react-confirm-alert": "^2.4.1",
    "react-datepicker": "^2.9.6",
    "react-devtools": "^4.4.0",
    "react-dialog": "^1.0.2",
    "react-dom": "16.8.1",
    "react-dropdown": "^1.6.4",
    "react-dropdown-multiselect": "^1.0.0",
    "react-dropdown-tree-select": "^2.1.1",
    "react-google-maps": "9.4.5",
    "react-light-calendar": "^1.0.3",
    "react-multiple-select-dropdown": "^2.0.0",
    "react-multiselect-checkboxes": "^0.1.1",
    "react-notification-alert": "0.0.12",
    "react-notifications": "^1.4.3",
    "react-notifications-component": "^2.1.0",
    "react-router-dom": "^4.3.1",
    "react-scripts": "2.1.5",
    "react-select": "^3.0.8",
    "react-swipeable-views": "0.13.1",
    "react-table-container": "^2.0.3",
    "react-toastify": "^5.4.0",
EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2020-05-29 00:25:35

1)转到项目根目录下的package.json文件。

2)在dependencies中找到@material-ui/core。目前,您将看到它为"@material-ui/core": "^3.9.4"

3)现在编辑版本号。例如,"@material-ui/core": "^4.9.2"

4)运行npm install

就这样!

当您想要更改版本时,可以对任何依赖项遵循此过程。但要确保这些版本相互兼容(如果有的话)。

祝好运!

票数 1
EN

Stack Overflow用户

发布于 2020-02-14 17:06:14

@material-ui/core版本^3.9.4没有<TableContainer>

所以你需要更新@materia ui/core版本

最新版本v4.9.2,请更新版本后再试

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/60222070

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档