首页 > 解决方案 > 将 material-ui 3.9.3 更新到 4.2.1 问题

问题描述

我已将 package.json 文件更新为...并运行 npm install 但我的 package-lock.json 文件仍显示 material-ui 3.9.3 ...

    "@material-ui/icons": "^4.0.0",

"@material-ui/core": {
      "version": "3.9.3",
      "resolved": "https://registry.npmjs.org/@material-ui/core/-/core-3.9.3.tgz",
      "integrity": "sha512-REIj62+zEvTgI/C//YL4fZxrCVIySygmpZglsu/Nl5jPqy3CDjZv1F9ubBYorHqmRgeVPh64EghMMWqk4egmfg==",
      "requires": {```

Removed all package-lock.json code and rerun npm install.

I have npm install @material-ui/core and then run npm install still i am getting 3.9.3

I need to create a component using the slider and am unable to find module Slider in /core

Is there a reason why I am unable to get this project to update? I am running Reactjs 16.8.6

标签: reactjsmaterial-ui

解决方案


推荐阅读