Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find module 'babel-runtime/core-js/object/get-prototype-of' #154

Open
pegasus1982 opened this issue Dec 20, 2019 · 0 comments
Open

Comments

@pegasus1982
Copy link

I have been developing website with react+webpack.
I installed this module.

But I faced babel error

Uncaught Error: Cannot find module 'babel-runtime/core-js/object/get-prototype-of'
at webpackMissingModule (bundle.js:107798)
at Object. (bundle.js:107798)
at Object../src/components/AppProvider/AppProvider.js (bundle.js:108080)
at webpack_require (bootstrap:19)
at Object. (index.js:5)
at Object../src/index.js (bundle.js:113782)
at webpack_require (bootstrap:19)
at Object.0 (bundle.js:129898)
at webpack_require (bootstrap:19)
at bootstrap:83

I can't know the reason

This is my package.json file.

{
  "name": "...",
  "version": "0.1.0",
  "private": true,
  "devDependencies": {
    "autoprefixer": "^9.7.3",
    "babel-core": "^6.26.3",
    "babel-eslint": "^10.0.3",
    "babel-loader": "7.1.2",
    "babel-plugin-transform-async-to-generator": "^6.24.1",
    "babel-plugin-transform-class-properties": "^6.24.1",
    "babel-plugin-transform-object-rest-spread": "^6.26.0",
    "babel-plugin-transform-runtime": "^6.23.0",
    "babel-preset-env": "^1.7.0",
    "babel-preset-react": "^6.24.1",
    "concurrently": "4.0.1",
    "css-loader": "^3.3.0",
    "eslint": "^6.7.2",
    "eslint-config-airbnb": "^18.0.1",
    "eslint-plugin-compat": "^3.3.0",
    "eslint-plugin-flowtype": "^4.5.2",
    "eslint-plugin-import": "^2.19.1",
    "eslint-plugin-jsx-a11y": "^6.2.3",
    "eslint-plugin-react": "^7.17.0",
    "file-loader": "^5.0.2",
    "flow-bin": "^0.113.0",
    "html-webpack-plugin": "^3.2.0",
    "postcss-loader": "^3.0.0",
    "style-loader": "^1.0.1",
    "url-loader": "^3.0.0",
    "webpack-cli": "^3.3.10",
    "webpack-dev-server": "^3.9.0"
  },
  "dependencies": {
    "@fortawesome/fontawesome-svg-core": "^1.2.26",
    "@fortawesome/free-solid-svg-icons": "^5.12.0",
    "@fortawesome/react-fontawesome": "^0.1.8",
    "@livechat/livechat-visitor-sdk": "0.35.2",
    "@livechat/saga-utils": "0.1.1",
    "@livechat/ui-kit": "0.2.13",
    "@material-ui/core": "3.0.3",
    "@material-ui/icons": "3.0.1",
    "@material-ui/lab": "3.0.0-alpha.15",
    "autosuggest-highlight": "3.1.1",
    "axios": "^0.18.0",
    "babel-runtime": "^6.26.0",
    "chart.js": "2.7.2",
    "date-fns": "1.29.0",
    "downshift": "2.2.2",
    "i18n-iso-countries": "^4.3.1",
    "jss-rtl": "0.2.3",
    "leaflet": "1.3.4",
    "moment": "2.22.2",
    "react": "16.5.1",
    "react-autosuggest": "9.4.1",
    "react-beautiful-dnd": "^9.0.2",
    "react-big-calendar": "0.19.2",
    "react-chartjs-2": "2.7.4",
    "react-dom": "16.5.1",
    "react-emotion": "^9.2.8",
    "react-google-maps": "9.4.5",
    "react-hot-loader": "^4.12.18",
    "react-leaflet": "2.0.1",
    "react-number-format": "3.5.2",
    "react-quill": "1.3.1",
    "react-redux": "^5.0.2",
    "react-router-dom": "4.3.1",
    "react-scripts": "1.1.5",
    "react-select": "2.0.0",
    "react-swipeable-views": "0.12.17",
    "react-text-mask": "5.4.3",
    "redux": "^3.6.0",
    "redux-create-reducer": "^1.1.0",
    "redux-devtools-extension": "^2.13.8",
    "redux-persist": "^5.4.0",
    "redux-saga": "^0.15.6",
    "redux-saga-requests": "^0.20.0",
    "redux-saga-requests-axios": "^0.7.4",
    "redux-thunk": "^2.3.0",
    "socket.io-client": "^2.2.0",
    "webpack": "^4.41.2",
    "webpack-merge": "^4.2.2"
  },
  "scripts": {
    "start": "webpack-dev-server --config webpack/config.dev.js --progress --content-base ./public --output-public-path /build/ --host 0.0.0.0 --port 3000 --watch-poll",
    "build": "webpack --config webpack/config.prod.js",
    "flow": "flow --include-warnings",
    "lint": "eslint webpack/* src/** --ext .js,.jsx,.flow"
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant