-
-
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 3.6.5 installation failure (cannot apply hunk) #1221
Comments
Got something similar:
|
Thanks, also ran into this. 3.8 seems to work. |
…all issue When Yarn 2 is trying to install and patch TS 3.6 it throws: ➤ YN0013: │ typescript@patch:typescript@npm%3A3.6.5#builtin<compat/typescript>::version=3.6.5&hash=c79188 can't be found in the cache and will be fetched from the disk ➤ YN0001: │ Error: typescript@patch:typescript@npm%3A3.6.5#builtin<compat/typescript>::version=3.6.5&hash=c79188: Cannot apply hunk #5 This is a Yarn 2 related issue, tracked here: yarnpkg/berry#1221
This comment has been minimized.
This comment has been minimized.
I was able to go around this issue by pinning down typescript resolutions in {
// ...
"resolutions": {
"typescript": "3.9.5"
}
} May not work for all but should work for most. |
Looks like
In a different project
I don't know why a different hash is being used for the same typescript major minor patch semver even after I clear the cache and remove the lockfile for both projects. Weird. |
Do you have the same yarn version in both projects? Yarn patches typescript to add support for PnP. |
trying to install |
I hadn't thought about checking. Looks like the Upgraded yarn via |
node v10.21.0 & v11.15.0
node v12.18.2 & v13.14.0 & v14.5.0
|
This should now be fixed in master. Note that the integration is slightly less good in 3.6 than 3.9+, so if you depend on TS yourself, we still suggest to upgrade. |
Still an issue.
|
4.1.0 is still in beta, and any support for it is best effort. It literally just got merged in the trunk, so you'll have to use the master branch to install it. |
Thank you @arcanis !!! |
Hey! Any updates on typescript 4.1 support? It's been out for 2 weeks now. |
The fix has been released last Monday, in 2.4 |
Installing typescript
3.6.5
fails when applying compat patch.The same error occurs for the whole
3.6.x
series.3.5
installs correctly, so does3.7
.Installing yarn from sources doesn't help.
For context, this happened while installing
@angular-devkit/[email protected]
.Reproduction:
Env (linux)
The text was updated successfully, but these errors were encountered: