**ERROR** Failed to apply patch for package react-native-receive-sharing-intent at path
- Dominant language
- TypeScript
- Stars
- 11.2k
- Forks
- 325
- PR merge metrics
- No merged PRs in 30d
Description
A patch (patch-package 8.0.0) created to add a new file and modify an existing one generates an error on Windows 11, WSL2 (version: 2.3. 26.0) and Mac OS (Sequoia 15.1).
Attached is a small test project where the error occurs.
To reproduce the error:
npm install <- the patch works without node_modules folder
rm node_modules/react-native-receive-sharing-intent/ios/ShareViewController.swift
npm install <- the patch fails with "**ERROR** Failed to apply patch for package react-native-receive-sharing-intent at path"
removing the node_modules/react-native-receive-sharing-intent/ folder everything works correctly again.
[patch-package-test.zip](https://github.com/user-attachments/files/17746874/patch-package-test.zip)
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.