Patch file parse error
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 20/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- nodejs, react-native, typescript
- Domain
- tooling
Research direction
The report names patches/@react-native-firebase+storage+18.7.3.patch and the patch-package postinstall command, but the patch file is not attached. Start by obtaining that file and reproducing the parse failure with patch -p1 -i ... or npx patch-package @react-native-firebase/storage; done means the patch parses and applies without the reported error.
Written by the indexing model from the issue text.
Description
> yoyomvp@1.0.0 postinstall
Wed, 12 Feb 2025 16:31:27 GMT
patch-package
Wed, 12 Feb 2025 16:31:27 GMT
patch-package 8.0.0
Wed, 12 Feb 2025 16:31:27 GMT
Applying patches...
Wed, 12 Feb 2025 16:31:27 GMT
ERROR Failed to apply patch for package @react-native-firebase/storage
Wed, 12 Feb 2025 16:31:27 GMT
Wed, 12 Feb 2025 16:31:27 GMT
This happened because the patch file patches/@react-native-firebase+storage+18.7.3.patch could not be parsed.
Wed, 12 Feb 2025 16:31:27 GMT
Wed, 12 Feb 2025 16:31:27 GMT
If you just upgraded patch-package, you can try running:
Wed, 12 Feb 2025 16:31:27 GMT
Wed, 12 Feb 2025 16:31:27 GMT
patch -p1 -i patches/@react-native-firebase+storage+18.7.3.patch
Wed, 12 Feb 2025 16:31:27 GMT
npx patch-package @react-native-firebase/storage
Wed, 12 Feb 2025 16:31:27 GMT
Wed, 12 Feb 2025 16:31:27 GMT
Otherwise, try manually creating the patch file again.
Wed, 12 Feb 2025 16:31:27 GMT
Wed, 12 Feb 2025 16:31:27 GMT
If the problem persists, please submit a bug report:
Wed, 12 Feb 2025 16:31:27 GMT
Wed, 12 Feb 2025 16:31:27 GMT
https://github.com/ds300/patch-package/issues/new?title=Patch+file+parse+error&body=%3CPlease+attach+the+patch+file+in+question%3E
Wed, 12 Feb 2025 16:31:27 GMT
npm ERR! code 1
Wed, 12 Feb 2025 16:31:27 GMT
npm ERR! path /Users/expo/workingdir/build
Wed, 12 Feb 2025 16:31:27 GMT
npm ERR! command failed
Wed, 12 Feb 2025 16:31:27 GMT
npm ERR!
Wed, 12 Feb 2025 16:31:27 GMT
command sh -c patch-package
Wed, 12 Feb 2025 16:31:27 GMT
npm
Wed, 12 Feb 2025 16:31:27 GMT
ERR! A complete log of this run can be found in: /Users/expo/.npm/_logs/2025-02-12T16_31_12_380Z-debug-0.log
Wed, 12 Feb 2025 16:31:28 GMT
npm install exited with non-zero code: 1
- Dominant language
- TypeScript
- Stars
- 11.2k
- Forks
- 325
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ds300/patch-package
-
Difficulty 1/5 Under an hour Newbie friendliness 82/100
ds300/patch-package#617 · 1 reaction ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
ds300/patch-package#615 · 3 reactions ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
ds300/patch-package#216 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 25/100
ds300/patch-package#611 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
ds300/patch-package#610 · 2 comments · 1 reaction ·
All issues in ds300/patch-package
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
EclipseFdn/open-vsx.org#13385 · 1 comment ·
-
S: triage
Difficulty 1/5 Under an hour Newbie friendliness 85/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
fix(errors): EHOSTUNREACH from a happy-eyeballs connect is reported as a resolver error (STAMP-80) Open
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
snapshot-labs/stamp#666 ·
-
vangogh
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
knaw-huc/textannoviz#691 ·