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
After upgrading babel preset-env, core, runtime and typescript to 7.7.7, async functions are not working in some cases #10928
Comments
Hey @kelly-tock! 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." |
As a workaround you can disable the |
Will try this and great question. This was set up this way when I first saw it already. |
disabling spec: true worked for me. is this an incorrect usage somehow or a bug? |
Using both |
I just tried spec true and loose false, and it still had the same issue. its working with both set to false. |
I have some problems reproducing this. Could you post the full stack trace, and the transpiled version of the |
stack:
|
compiled onClose:
|
original code:
|
Ok, I'm really confused but interested 🙃
|
happy to help.
so it appears to be the this of the function component. debugger to see the values, where the this is the window and not the this of the function: |
and this was working previously to the latest round of 7.7.7 updates to the various babel packages. |
Has the problem been solved? |
Bug Report
After updating preset-env ,core, runtime, and typescript to 7.7.7 from 7.7.5, in some scenarios async functions are not behaving the same way.
Current Behavior
When a click handler is called in this case, the error in the screenshot above is generated for the async function.
Input Code
Expected behavior/code
A clear and concise description of what you expected to happen (or code).
I expect the code to be ok executing the async function.
Babel Configuration (babel.config.js, .babelrc, package.json#babel, cli command, .eslintrc)
babel.config.js
Environment
cli
,register
,loader
]Possible Solution
Additional context/Screenshots
Add any other context about the problem here. If applicable, add screenshots to help explain.
The text was updated successfully, but these errors were encountered: