patch-package icon indicating copy to clipboard operation
patch-package copied to clipboard

Patch file parse error

Open tebenk opened this issue 5 years ago • 9 comments

Error: Command failed: yarn run postinstall

ERROR Failed to apply patch for package bulma-rtl

This happened because the patch file patches\bulma-rtl+0.7.1.patch could not be parsed.

If you just upgraded patch-package, you can try running:

cd patches\bulma-rtl+0.7.1.patc
patch -p1 -i h
npx patch-package bulma-rtl
cd ../..

tebenk avatar Nov 09 '19 05:11 tebenk

Hi, sorry for the delay in getting back to you. Any chance you could attach the patch file that caused this failure? Thanks 🙏

ds300 avatar Dec 19 '19 11:12 ds300

Hello, I have the same Error, patch file is attached, Thank you!

bulma-rtl+0.7.1.zip

NinioDev avatar Dec 25 '19 09:12 NinioDev

the problem is not solved?

arankar avatar May 14 '20 15:05 arankar

OS Windows fixed the error: patches \ bulma-rtl + 0.7.1.patch patches \ bulma-extensions + 2.2.2.patch CRLF-> LF

eslintrc.js add rules: { "linebreak-style": 0, }

arankar avatar May 20 '20 14:05 arankar

same error. working on windos

nikulvnnovate avatar Jan 24 '21 08:01 nikulvnnovate

me too

Vitaminaq avatar Feb 23 '21 02:02 Vitaminaq

Error fixed in windows

I'm using Windows and VS Code and I just changed the end of line sequence to be LF instead of CRLF in the patch file and the problem solved.

YoussefZidan avatar Mar 22 '22 12:03 YoussefZidan

Error fixed in windows

I'm using Windows and VS Code and I just changed the end of line sequence to be LF instead of CRLF in the patch file and the problem solved.

Can confirm that this error happens on "patch-package": "^6.2.2" (using Windows ofc), but just changing the faulty patch from CRLF to LF on VS Code indeed solves the issue, it would be nice if that never happened though.

Knufle avatar Jun 07 '22 18:06 Knufle

@orta can you please close the many duplicate issues?

https://github.com/ds300/patch-package/issues?q=in%3Atitle+parse+error+is%3Aopen

milahu avatar Oct 24 '22 17:10 milahu