[Bug] Typescript 3.6.5 installation failure (cannot apply hunk)

See original GitHub issue

Installing typescript 3.6.5 fails when applying compat patch.

➤ YN0000: ┌ Resolution step
➤ YN0000: └ Completed in 1.29s
➤ YN0000: ┌ Fetch step
➤ 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
    at c (/tmp/berry-test-ts3.6/.yarn/releases/yarn-berry.js:56:59007)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at async /tmp/berry-test-ts3.6/.yarn/releases/yarn-berry.js:56:61149
    at async o (/tmp/berry-test-ts3.6/.yarn/releases/yarn-berry.js:56:58290)
    at async Object.t.applyPatchFile (/tmp/berry-test-ts3.6/.yarn/releases/yarn-berry.js:56:61122)
    at async t.PatchFetcher.patchPackage (/tmp/berry-test-ts3.6/.yarn/releases/yarn-berry.js:56:58045)
    at async /tmp/berry-test-ts3.6/.yarn/releases/yarn-berry.js:56:57194
    at async d (/tmp/berry-test-ts3.6/.yarn/releases/yarn-berry.js:42:91814)
    at async /tmp/berry-test-ts3.6/.yarn/releases/yarn-berry.js:42:92398
    at async /tmp/berry-test-ts3.6/.yarn/releases/yarn-berry.js:42:93503
➤ YN0000: └ Completed in 14.5s
➤ YN0000: Failed with errors in 15.79s

The same error occurs for the whole 3.6.x series. 3.5 installs correctly, so does 3.7.

Installing yarn from sources doesn’t help.

For context, this happened while installing @angular-devkit/build-angular@0.901.1.

Reproduction:

$ mkdir repro
$ cd repro
$ yarn set version berry
$ yarn init
$ yarn add typescript@3.6

Env (linux)

$ yarn --version
2.0.0-rc.32
$ node --version
v12.16.1

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:14
  • Comments:15 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
arcaniscommented, Sep 28, 2020

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.

1reaction
merceyzcommented, Jun 22, 2020

Do you have the same yarn version in both projects? Yarn patches typescript to add support for PnP.

Read more comments on GitHub >

github_iconTop Results From Across the Web

yarn install failed for building Spartacus storefront
I think your having issues with the installation/setup of node-gyp on mac Catalina. Can you verify the analyse/solutions at ...
Read more >
Bug listing with status RESOLVED with resolution OBSOLETE ...
0.8.5 (New Application)" status:RESOLVED resolution:OBSOLETE severity: ... Bug:219883 - "net-print/cups-1.3.7-r1 failed cannot find -lssp_nonshared" ...
Read more >
Package autodist-last.log - openmamba
Please try re-compiling or re-installing the module (for instance, ... Build files cannot be regenerated correctly. error: Bad exit status from ...
Read more >
Untitled
Worcester schools catchment areas, V6r1m0 install, Illusive festival line up, ... Maximale hypothek berekenen, Non system disk error windows 7.
Read more >
(PDF) Was approved by the 7 Member Examining Committee ...
into chunks, which are then assigned to processors (slaves). In their original form, these. algorithms cannot handle loops with dependencies ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found