-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
ES2020 not supported when using Angular 15 #26554
Comments
Additional details. Attempted to make basic angular 14 project with cypress. That succeeded. Then upgraded to angular 15, and now it breaks with the same problem. |
Some more details. My guess it revolves around whatever Cypress is using to read the output of the project. If you change the tsconfig |
Alas, spoke too soon. As even though I changed the target and that resolved the private fields, optional chaining still fails. Updating the repo to show this. |
Thanks @AStoker for creating the issue and providing the reproducible repo. I'm able to reproduce this issue as well using your example repo. We will see what needs to be done to support this |
Adding details for others who might be experiencing the issue. Part of the issue seems to be a bug in an older version of ts-loader (TypeStrong/ts-loader#1289). |
Current behavior
Private fields have been supported by both Typescript and Javascript for a while now. However, when I try to use private fields inside my project, running cypress gives the error:
The error spawns from
The code it's failing on looks like this:
This project is created from Nx, and is the generic Angular application with Cypress. I created a simple repro repo here: https://github.com/AStoker/cypress-modern-es-tests
Desired behavior
Cypress should support private fields.
Test code to reproduce
Here is a repro: https://github.com/AStoker/cypress-modern-es-tests
Cypress Version
12.10.0
Node version
18.15.0
Operating System
Windows 11
Debug Logs
No response
Other
No response
The text was updated successfully, but these errors were encountered: