[Bug] Cannot apply hunk #6 (set enableInlineHunks for details)

See original GitHub issue
  • I’d be willing to implement a fix

Describe the bug

Running yarn dlx @yarnpkg/doctor produces the following:

➤ YN0000: ┌ Resolution step
➤ YN0000: └ Completed in 2s 585ms
➤ YN0000: ┌ Fetch step
➤ YN0013: │ typescript@patch:typescript@npm%3A4.3.0-beta#builtin<compat/t
➤ YN0066: │ typescript@patch:typescript@npm%3A4.3.0-beta#builtin<compat/typescript>::version=4.3.0-beta&hash=a45b0e: Cannot apply hunk #6 (set enableInlineHunks for details)
➤ YN0000: └ Completed in 0s 783ms
➤ YN0000: Failed with errors in 3s 371ms

To Reproduce

With @yarnpkg/berry@2.4.1 and typescript@4.2.3, run yarn dlx @yarnpkg/doctor

The minimal information needed to reproduce your issue (ideally a package.json with a single dep). Note that bugs without minimal reproductions will be closed as non-actionable.

IMPORTANT: We strongly prefer reproductions that use Sherlock. Please check our documentation for more information: https://yarnpkg.com/advanced/sherlock

Reproduction
// Sherlock reproduction. For instance:
await packageJsonAndInstall({
  dependencies: {
    [`typescript`]: `4.2.3`,
  },
});

Screenshots

N/A

Environment if relevant (please complete the following information):

  • OS: macOS 11.2.3
  • Node version 14.16.0
  • Yarn version 2.4.1

Additional context

N/A

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:3
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
arcaniscommented, Apr 13, 2021

This will be fixed with Yarn 3.0.0 (currently in RC).

2reactions
bbughcommented, May 28, 2021

I don’t know where it’s tracked, but I was able to get this to work using the yarn 3 rc2:

yarn set version 3.0.0-rc.2

Then yarn install successfully installed TypeScript 4.2.3.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Bug] Typescript 4.3.2 Cannot apply hunk #2 #2952 - GitHub
I'd be willing to implement a fix Describe the bug Can't install TypeScript ... Cannot apply hunk #2 (set enableInlineHunks for details).
Read more >
Hunk #1 FAILED at 1. What's that mean? - Stack Overflow
It is an error generated by patch . If you would open the .patch file, you'd see that it's organized in a bunch...
Read more >
How to fix "Hunk #1 FAILED at 1 (different line endings ...
In my case both the source file and the patch had CRLF line-ending, and converting both to LF didn't work either. What worked...
Read more >
Getting started with Yarn 2 and TypeScript | by xsmith - Medium
Package information ...PS C:\…\your-project> yarn set version berry ... VS Code and make your first module and BAM “Cannot find module 'fs' ...
Read more >
yarn v2 無法安裝react-scripts v4 - Frank的五四三
[Bug] Yarn 2 install Failed with errors on react-scripts 4 #2077. 會噴一條 ... Cannot apply hunk #1 (set enableInlineHunks for details).
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