patch-package
patch-package copied to clipboard
Patch file parse error
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 ../..
Hi, sorry for the delay in getting back to you. Any chance you could attach the patch file that caused this failure? Thanks 🙏
the problem is not solved?
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, }
same error. working on windos
me too
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.
Error fixed in windows
I'm using Windows and VS Code and I just changed the
end of line sequence
to beLF
instead ofCRLF
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.
@orta can you please close the many duplicate issues?
https://github.com/ds300/patch-package/issues?q=in%3Atitle+parse+error+is%3Aopen