-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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 seems not working with babel v7 #5736
Comments
Ahh forget it, in the Docs its |
yes |
Why both |
Just upgraded babel from I see babel changes the way .babelrc files are discovered and it introduces babel.config.js, but I could not find any documentation. See: https://github.com/babel/babel/releases/tag/v7.0.0-beta.45 and |
That's #6053 |
Thanks - will check it out. |
same issue. i have
|
@hannadrehman I just had this issue and it worked in my docker container, I think it's the version of yarn that will cause this. 1.6.0 results in your issue, 1.7.0 seems to work well. |
@hannadrehman i have the same issue. |
had similar issue - i could not get jest 24 to work with any combination of babel 7 when using latest yarn. i had to switch back to |
Jest 24 does not need the bridge at all |
pardon me. the bridge package was likely one of the many package combinations i tried to get jest 24 to work with babel 7. what worked for me was installing both @babel/core": "^7.2.2" and "babel-core": "^7.0.0-0", and switching from yarn to npm. i've edited the above comment to not include bridge package. |
@hannadrehman
It's happens after configuring @babel/polyfill https://babeljs.io/docs/en/babel-polyfill.
Solved by changing |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Do you want to request a feature or report a bug?
bug
What is the current behavior?
I get an
TypeError: Cannot read property 'loose' of undefined (While processing preset: "/Users/x/Desktop/jest-test/node_modules/babel-preset-react-app/index.js")
on using jest v22.4.2 with babel v7I've searched for this error and found this Bug in Babel, which suggests that when
babel-core
instead of@babel/core
is required by any package, it will break. And it seems likejest-runtime
v22.4.2 (currently the newest one) is doing exactly this.If the current behavior is a bug, please provide the steps to reproduce and
either a repl.it demo through https://repl.it/languages/jest or a minimal
repository on GitHub that we can
yarn install
andyarn test
.I created this GitHub Repo
What is the expected behavior?
No error and it works with babel v7
Please provide your exact Jest configuration and mention your Jest, node,
yarn/npm version and operating system.
(all other dependencies can be found in the aforementioned GitHub Repo)
The text was updated successfully, but these errors were encountered: