Visitar URL original
Tell users they can bypass the compiler error · Issue #33745 · angular/angular · GitHub
The Wayback Machine - https://web.archive.org/web/20200628004641/https://github.com/angular/angular/issues/33745
Skip to content
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

Tell users they can bypass the compiler error #33745

Open
StephenFluin opened this issue Nov 11, 2019 · 7 comments
Open

Tell users they can bypass the compiler error #33745

StephenFluin opened this issue Nov 11, 2019 · 7 comments

Comments

@StephenFluin
Copy link
Member

@StephenFluin StephenFluin commented Nov 11, 2019

🚀 feature request

Relevant Package

@angular/compiler

Description

Users with the wrong TypeScript version get the error: ERROR in The Angular Compiler requires TypeScript >=3.6.4 and <3.7.0 but 3.7.2 was found instead.

When this error is hit, you should tell users they can bypass the error with:
"disableTypeScriptVersionCheck": true

Describe the solution you'd like

Tell people how to bypass it.

Describe alternatives you've considered

@StephenFluin StephenFluin changed the title Tell users they can bypass the error Tell users they can bypass the compiler error Nov 11, 2019
@gkalpak
Copy link
Member

@gkalpak gkalpak commented Nov 11, 2019

Do we really want to do that (given that there are breaking changes in TS v3.7. that are not compatible with our code - e.g. the removal of .typeArguments)? 🤔

@kara kara added the comp: docs label Nov 11, 2019
@ngbot ngbot bot added this to the needsTriage milestone Nov 11, 2019
@Airblader
Copy link
Contributor

@Airblader Airblader commented Nov 12, 2019

In the view engine world I would prefer not showing people the foot gun they can use.

However I did read on the PR for latest TS support that Ivy is supposedly much more stable with regards to changes in TS, so there this could perhaps make more sense.

@gkalpak
Copy link
Member

@gkalpak gkalpak commented Nov 12, 2019

That is generally true, but we do use the removed typeArguments property in several places, so I am afraid we might be setting people up for failure.

(I could be wrong.)

@Airblader
Copy link
Contributor

@Airblader Airblader commented Nov 12, 2019

I would put it like this: if the only reasonable action to add this information is to also add a big fat warning along the lines of "this can break everything", then I think it shouldn't be added at all.

@MrJithil
Copy link
Contributor

@MrJithil MrJithil commented Dec 4, 2019

It's already documented in disabletypescriptversioncheck in aio.

I think, we don't need anything more about this.

@kapunahelewong , could you please verify the above answer and kindly close this issue?

@MrJithil
Copy link
Contributor

@MrJithil MrJithil commented Dec 4, 2019

In the view engine world I would prefer not showing people the foot gun they can use.

However I did read on the PR for latest TS support that Ivy is supposedly much more stable with regards to changes in TS, so there this could perhaps make more sense.

As a developer, we need to all the foot guns. I don't agree to hide a feasibility from a dev.

And FYI, we already exposing it in the disabletypescriptversioncheck

@kapunahelewong
Copy link
Contributor

@kapunahelewong kapunahelewong commented Dec 4, 2019

Thanks for pointing this out and sharing the link, @MrJithil. @jbogarthyde do you have any context on this that you might be able to share? As @MrJithil points out, it does look like it's written in the guide, but maybe the intention is for it to be more explicit?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
docs
Pending - Top of backlog
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
7 participants
You can’t perform that action at this time.