Skip to content

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

Open
@juongithub

Description

@juongithub

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions