ds300 / patch-package

Fix broken node modules instantly 🏃🏽‍♀️💨
MIT License
10.48k stars 295 forks source link

**ERROR** Failed to apply patch for package react-native-receive-sharing-intent at path #545

Open juongithub opened 1 week ago

juongithub commented 1 week ago

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

JeanMeche commented 3 days ago

It's probably the same issue that was reported in #504, also you might want to have a look at #518.