-
-
Notifications
You must be signed in to change notification settings - Fork 1.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
[Bug] TypeScript 4.2.2 unable to be installed with Yarn 2.4.0 #2514
Comments
This comment has been minimized.
This comment has been minimized.
Unfortunately as long as microsoft/TypeScript#35206 isn't merged we have to rely on a patch in order to add TypeScript compatibility. Such patches sometimes fail to apply cleanly between versions, and that's what happened here. On the bright side this particular issue has already been fixed in master, so running And remember to upvote the TS PR, perhaps a critical mass will convince the TS team to partner on a proper fix 🤞 |
Nice, yea I'm already one of the 90+ upvotes on that PR 👍 🙃
|
Beat me to the post! Thanks |
Is there any way of skipping the patch if I use the I guess this applies to all the patches you bundle |
In some cases, this error can be worked around by adding these lines to "resolutions": {
"typescript": "4.1.5"
} Specifically, this is useful when you're seeing this error because one of your dependencies depends on TypeScript 4.2.2 but your project doesn't. Hope that's helpful to someone 🙂 |
I'll add this capability to the next release. |
Awesome, thanks @arcanis! |
The link for the error message doesn't work, perhaps a section can be added with a link to this issue? |
Use |
Not directly related to the issue, but as a rule of thumb |
This comment has been minimized.
This comment has been minimized.
@JasonKleban This seems to be a different issue, please open a different thread (with reproduction). I'll lock this thread for now since the resolution is already in progress (fix is already in master, and with #2543 failing builtin patches won't prevent you from using the packages - the patch will simply be turned off). I'll update once a release is made (ideally we'll make a 2.4.1 that will just include the TS fix, I just have to double-check that the branch didn't diverge too much). |
I've just released Yarn 2.4.1, which formally fixes the compatibility issue with TS 4.2 (no other change in this release). Along with the work mentioned in the previous post I think we can now close this issue, thanks for your patience! |
Describe the bug
It appears that when attempting to install TypeScript 4.2, which was just released, the latest released version of Yarn (2.4.0) fails to apply patches. Attempting to install or upgrade TypeScript results in the error
Cannot apply hunk #6
.It does appear that the unreleased code in
master
(yarn set version from sources
) is able to install TypeScript 4.2.2.To Reproduce
Note that since this is only an issue for 2.4.0, this reproduction downloads and runs against 2.4.0 rather than
master
:Reproduction
Screenshots
Environment
The text was updated successfully, but these errors were encountered: