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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: @babel/runtime v7.18.0 regeneratorRuntime is not defined #14568
Comments
Hey @yanhcao! We really appreciate you taking the time to report an issue. The collaborators on this project attempt to help as many people as possible, but we're a limited number of volunteers, so it's possible this won't be addressed swiftly. If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack community that typically always has someone willing to help. You can sign-up here for an invite. |
Could you share the source and the compiled version of the file where there is the error? |
Sorry, its private project. A dependency of our project uses version 7.18.0 of @babel/runtime, when I build our project, I get an error "ReferenceError: regeneratorRuntime is not defined". Then I found out that this version was released 13 hours ago. This pr #14538. |
Step 1 of solving a problem is reproducing the problem 馃槢 Is that dependency public? EDIT: A workaround is to install |
@yanhcao Can you share your Babel config and the version of the various Babel packages you are using? |
Hi @yanhcao! This issue is missing some important information we'll need to be able to reproduce this issue. Please understand that we receive a high volume of issues, and there are only a limited number of volunteers that help maintain this project. The easier it is for us to decipher an issue with the info provided, the more likely it is that we'll be able to help. Please make sure you have the following information documented in this ticket:
Please provide either a link to the problem via the |
I had the same problem. POC: https://github.com/xqin/regeneratorRuntime You can reproduce the problem in the You can check the normal display of the page in the The only difference is that I specified the version of |
@xqin |
Yup, it looks like The surprising thing is that their ESM build is correct, only the CommonJS one is not. |
I reported this to the correct repository! |
馃捇
How are you using Babel?
Other (Next.js, Gatsby, vue-cli, ...)
Input code
regeneratorRuntime.mark(...)
regeneratorRuntime.wrap(...)
Configuration file name
No response
Configuration
No response
Current and expected behavior
error: regeneratorRuntime is not defined
Environment
babel/runtime 7.18.0
Possible solution
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: