patch-package
patch-package copied to clipboard
**ERROR** Failed to apply patch for package @aws-amplify/pushnotification at path
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.