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.
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