-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
Babel runtime fail after react-scripts update to 2.1.8 (tests fail) #6802
Comments
This seems related to a recurring issue that is very hard to solve. Can I confirm that you removed your Can you run |
One more thing. After upgrade to 2.1.8, downgrade to 2.1.5 by |
Thanks @lkostrowski. Unfortunately there isn't anything obvious here... as I said, this is an issue we're aware of, but are having a lot of trouble identifying the root cause of. In the meantime, are you able to fix the issue manually in your |
No, I wasn't trying. Will try my luck when new CRA is released with some must-have feature |
Bump to |
For me I didn't have this issue before using CRA 3 but the error is a bit different (can't find it from setupTests) so I think it's more related to #6398 |
I've seen this too (outside of CRA, but with Can you run |
So I should remove my workaround, properly reinstall and then run npm ls @babel/runtime for you to investigate? I tried removing the lockfile and packages before but that didn't help. |
That would help, @maracuja-juice. We need more information, so we can understand where the issue is coming from. |
Here's the output of
|
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs. |
This is still an issue. Have you been able to investigate yet Brody? |
Hi @maracuja-juice, we think we've resolved this issue now. It was complex, and it should be working in the latest v3 releases. Have you tried that? It likely won't have any breaking changes for you. |
I only had this error since CRA 3. |
Can I confirm, as I just had this issue two minutes ago and solved it, have you tried this?
|
Yes that's what I did. (yarn.lock though) |
OK, thanks @maracuja-juice. Can you also share the output of Sorry you're facing this issue. I do want to help you get to the bottom of it. |
Hi there ! I am using My tests run fine when using
Here is my 'src/**/*.{js,jsx}':
- prettier
- eslint --fix
- git add
- npm run test |
Hello @mrmckeb I've got an issue with setupTests.js file which is actuallt not read by jest on my tests, the file is inside Ah by the way I'm on mac OS |
@iOiurson I think that's a different issue, could you open a new ticket and mention me? I'll pick it up. It looks like a configuration issue... assuming tests work in other cases :) |
Hi @belyas, that is an interesting issue... it looks OK at first glance. Can you open a ticket for this one, so I can investigate it with you? Just mention me in the ticket and be sure to fill in the template. |
Hi @mrmckeb, I'm still experiencing same problem and I'm running latest version of [email protected] My app stopped working, so I tried creating a new app with create-react-app and yarn start, but I still got same error for the new create-react-app. |
To fix it, I always copy babel\runtime\helper file from another repository and paste into every new create-react-app app I create. Is there anyway to solve this? |
We ran into the same issue today and we still try to fix that. Does anybody have a clean solution yet :) ? thanks in advance |
Upgrade to latest react-scripts (3.1) |
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs. |
Is this a bug report?
YES
After I upgraded from 2.1.5 to 2.1.8, my tests (with Jest) fail, giving the same error with each run.
Downgrade to 2.1.5 fixes the problem.
Also app works properly, only tests fail
Did you try recovering your dependencies?
Yes
Environment
Package json:
The text was updated successfully, but these errors were encountered: