Webpacker: error "@rails/webpacker#@babel/core#debug" is wrong version: expected "^4.1.0", got "2.6.9"

Created on 13 May 2019  路  4Comments  路  Source: rails/webpacker

After updating to the latest babel & rails webpacker version, I get following error:

...
yarn check v1.15.2
success Folder in sync.
Done in 0.13s.
yarn check v1.15.2
error "@rails/webpacker#@babel/core#debug" is wrong version: expected "^4.1.0", got "2.6.9"
error Found 1 errors.
info Visit https://yarnpkg.com/en/docs/cli/check for documentation about this command.

Any hints why this is happening?

This is my package.json

{
  "name": "yxc",
  "license": "UNLICENSED",
  "engines": {
    "node": ">= 0.10"
  },
  "dependencies": {
    "@babel/plugin-proposal-class-properties": "^7.1.0",
    "@babel/plugin-proposal-object-rest-spread": "^7.0.0",
    "@babel/plugin-syntax-dynamic-import": "^7.0.0",
    "@babel/plugin-transform-destructuring": "^7.1.3",
    "@babel/plugin-transform-regenerator": "^7.0.0",
    "@babel/plugin-transform-runtime": "^7.1.0",
    "@babel/polyfill": "^7.4.4",
    "@babel/preset-env": "^7.0.0",
    "@babel/preset-react": "^7.0.0",
    "@rails/webpacker": "^4.0.2",
    "@sentry/browser": "^5.1.3",
    "autosize": "^4.0.1",
    "axios": "^0.18.0",
    "babel-loader": "^8.0.4",
    "babel-plugin-module-resolver": "^3.2.0",
    "babel-plugin-transform-react-remove-prop-types": "^0.4.24",
    "babelify": "^10.0.0",
    "browserify": "^16.1.0",
    "browserify-incremental": "^3.1.1",
    "classnames": "^2.2.6",
    "dexie": "^2.0.4",
    "formik": "^1.5.4",
    "formik-effect": "^1.2.0",
    "immer": "^3.1.1",
    "immutability-helper": "2.4.0",
    "immutable": "4.0.0-rc.11",
    "jquery": "^3.3.1",
    "jquery.marquee": "^1.5.0",
    "localforage": "^1.7.3",
    "lodash": "^4.17.11",
    "npm": "^5.7.1",
    "postcss-cssnext": "^3.1.0",
    "postcss-import": "^12.0.1",
    "postcss-loader": "^3.0.0",
    "prop-types": "^15.7.2",
    "proptypes": "^1.1.0",
    "react": "^16.8.6",
    "react-dom": "^16.8.6",
    "react-hot-loader": "^4.8.4",
    "react-paginate": "^6.3.0",
    "react-redux": "^7.0.3",
    "redux": "^4.0.1",
    "redux-actions": "^2.6.5",
    "redux-cablecar": "^3.0.4",
    "redux-logger": "^3.0.6",
    "redux-observable": "^1.0.0",
    "redux-thunk": "^2.3.0",
    "rxjs": "^6.3.3",
    "uuid": "^3.3.2",
    "velocity-animate": "^1.5.1",
    "velocity-react": "^1.3.3",
    "webpack": "^4.30.0"
  },
  "devDependencies": {
    "@babel/cli": "^7.0.0",
    "@babel/core": "^7.4.4",
    "@babel/preset-flow": "^7.0.0",
    "webpack-dev-server": "^3.3.1"
  },
  "optionalDependencies": {
    "fsevents": "1.2.9"
  },
  "version": "1.0.0",
  "main": "index.js",
  "repository": "yxc",
  "author": "yxc"
}

Most helpful comment

@gregorburgess Have you tried yarn upgrade?

All 4 comments

Nevermind, I updated all packages and now it works.. Dunno why though..

I'm having a similar issue getting 48 seperate messages like:
error "@rails/webpacker#@babel/core#@babel/code-frame" is wrong version: expected "^7.8.3", got "7.5.5"
When trying to run rails s

@gregorburgess Have you tried yarn upgrade?

I was having the same problem, then I tried

yarn upgrade

And the problem is gone 馃

Was this page helpful?
0 / 5 - 0 ratings

Related issues

suhomozgy-andrey picture suhomozgy-andrey  路  3Comments

pioz picture pioz  路  3Comments

itay-grudev picture itay-grudev  路  3Comments

suhomlineugene picture suhomlineugene  路  3Comments

FrankFang picture FrankFang  路  3Comments