patch-package icon indicating copy to clipboard operation
patch-package copied to clipboard

**ERROR** Failed to apply patch for package @aws-amplify/pushnotification at path

Open RMG0 opened this issue 3 years ago • 0 comments

Trying to patch @aws-amplify/pushnotification by modifying just one line in a android java file, patch file created successfully but when its applied after npm install, its giving error.


**ERROR** Failed to apply patch for package @aws-amplify/pushnotification at path

    node_modules/@aws-amplify/pushnotification

  This error was caused because patch-package cannot apply the following patch file:

    patches/@aws-amplify+pushnotification+4.3.8.patch

  Try removing node_modules and trying again. If that doesn't work, maybe there was
  an accidental change made to the patch file? Try recreating it by manually
  editing the appropriate files and running:

    patch-package @aws-amplify/pushnotification

My other patch files are applied correctly so not sure what is wrong.

RMG0 avatar Jan 28 '22 18:01 RMG0