-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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/preset-env with target specified is not able to compile #10808
Comments
Hey @monsonjeremy! 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." |
What is your node version? Also, please add |
@nicolo-ribaudo I've added the deubg option,
here is the output:
|
@monsonjeremy Can you draft a minimal reproducible example on REPL from |
Sorry for the delay @JLHwung.. Here's a really small example to reproduce. // /src/server/preferences/handlers/sessions.js
export const deleteHandler = async (req, res) => {
const { params } = req;
}; |
@JLHwung I've gone ahead and made a repo to test this out on, it should error out if you run |
@JLHwung I'm sorry I totally did not notice that I didn't link the repo.. Here is the link: https://github.com/monsonjeremy/babel-error-example Edit: I've also updated the code to be an even more minimum reproducible example, seems like the issue lies in the transform regenerator plugin. |
@monsonjeremy Thanks for the repo! The issue comes from the fact
As you can see versions with Out of curiosity, why do you add es2015 transforms as long as |
@JLHwung This is an oversight on my part I guess. So if I have |
@monsonjeremy Yes. If you are using latest |
Thanks for your help @JLHwung, really appreciate it! Feel free to close if needed! |
I've had multiple instances where I have has issues with
@babel/preset-env
when specifying targets in my config for exampleWhen I run my application I get the following error:
I'm not entirely sure why this is happening but if I update my config to the following, it works:
The text was updated successfully, but these errors were encountered: