Как решить модуль не найден: не удается разрешить '@ babel / runtime / core-js / map' в Material-UI - PullRequest
0 голосов
/ 02 июля 2019

Я использую Material UI для React, я обновил Material-UI до последней версии, и он выдает мне следующую ошибку

.. / node_modules / материал-UI / стили / withStyles.js

Модуль не найден: невозможно разрешить '@ babel / runtime / core-js / map' в

C: \ Users \ User \ Documents \ код \ реагировать \ node_modules \ материал-щ \ стили '

Я также опустился до предыдущей версии Material-UI, обошелся и с установкой правильной версии babel, но все еще имел ту же проблему.

Вот мой пакет. Json

"dependencies": {
    "@babel/runtime": "^7.4.0",
    "@material-ui/core": "^4.1.3",
    "@material-ui/icons": "^3.0.2",
    "@material-ui/lab": "^3.0.0-alpha.30",
    "axios": "^0.18.1",
    "bootstrap": "^4.3.1",
    "material-auto-rotating-carousel": "^3.0.1",
    "material-auto-rotating-carousel-refurb": "^1.0.1",
    "react": "^16.8.6",
    "react-animated-slider": "^1.1.4",
    "react-bootstrap": "^0.32.4",
    "react-dom": "^16.8.6",
    "react-motion": "^0.5.2",
    "react-responsive-carousel": "^3.1.49",
    "react-router": "^3.2.3",
    "react-scripts": "2.1.2",
    "react-slick": "^0.23.2",
    "react-swipeable-views": "^0.13.3",
    "react-tap-event-plugin": "^1.0.0",
    "slick-carousel": "^1.8.1"
  }
...