-
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
fix(@angular/cli) - include "dom" lib in root tsconfig.json #5060
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but you have to change the commit message since that test is failing. The other two failing tests are flakes.
@filipesilva done. ha I manged to make a mistake in a 3 char pr 😆 |
39db3b3
to
a6178f0
Compare
Can we also add I was planning to open a discussion about it, tested in VS Code,
Because it says you can only have getters when targeting ES5 or higher. That's because it can only read the closest |
@Meligy should the target be es5 or should we bump it straight to es2016 since by default TS allows you to use that syntax? |
5d7deef
to
c089d67
Compare
That's in theory. In reality it doesn't matter, because So, I think we should set it to the minimum of both files, which is |
To explain it a little further: TypeScript in theory supports targeting For example, property getters are not supported when targeting If you don't specify anything, the lower value is assumed, which is |
Makes sense @filipesilva what do you think? |
Makes sense to me as well. |
updated to add es5 to target |
I'm possibly mistaken, but doesn't that mean that we can remove the lib and target from See #5111 for an attempt |
@cexbrayat that's right, yes. I added a request for changes to your PR, the es5 bit still needs to stay for non-ng4 projects. |
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. |
Add "dom" lib to root tsconfig.json. fixes #5046