-
Notifications
You must be signed in to change notification settings - Fork 12k
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
target: es2020 doesn't work with ?. null conditional operator #18204
Comments
This is not currently supported in Webpack, see webpack/webpack#10227 |
Transferred to the CLI repo, however this is not actionable for the CLI at the moment. |
As instructed in webpack/webpack#10227, changing "target" to "es2019" is a functional workaround |
Let’s continue tracking this issue as part of: #17555 Since this will only be fixed in Webpack 5. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
🐞 bug report
Affected Package
@angular/cli
Is this a regression?
No
Description
?. operator doesn't work if you set target: "ES2020" in tsconfig.base.json
🔬 Minimal Reproduction
Check out https://github.com/vivainio/repro-angular-es2020-fail
run "ng build" and observe the compiler error.
If you change it back to "target": "es2016", ng build succeeds.
🔥 Exception or Error
🌍 Your Environment
Angular Version:
Anything else relevant?
I'm aware that native async/await is not supported by Zone.js, but for the purposes of this discussions I don't care about this gap.
The text was updated successfully, but these errors were encountered: