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

Jest example not working #155

Open
elreeda opened this issue Dec 13, 2018 · 3 comments
Open

Jest example not working #155

elreeda opened this issue Dec 13, 2018 · 3 comments

Comments

@elreeda
Copy link

elreeda commented Dec 13, 2018

Hello I tried running the jest example and got

Requires Babel "^7.0.0-0", but was loaded with "6.26.3". If you are sure you have a compatible version of @babel/core, it is likely that something in your build process is loading the wrong version. Inspect the stack trace of this error to look for the first entry that doesn't mention "@babel/core" or "babel-core" to see what is calling Babel.

am I missing something?

@joserocha3
Copy link

joserocha3 commented Dec 24, 2018

@elreeda, add the following to your package.json. I do not believe this is a permanent fix, but it gets the example working.

  "resolutions": {
    "babel-core": "7.0.0-bridge.0"
  }

@tutts
Copy link

tutts commented Jan 1, 2019

The problem is due to a dependency missing with babel-jest as indicated on yarn install.

In the documentation it asks you to install like this to support Babel 7:

yarn add --dev babel-jest 'babel-core@^7.0.0-0' @babel/core

@joserocha3
Copy link

@tutts, right on. Looks like there is a branch with the correct dependencies.

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

3 participants