**ERROR** Failed to apply patch for package @rbmweb/canvas at path
patch-package is failing to apply patch to @rbmweb/canvas:1.0.0
node_modules/@rbmweb/canvas
This error was caused because patch-package cannot apply the following patch file:
patches/@rbmweb+canvas+1.0.0.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 @rbmweb/canvas
I am trying to update the file: node_modules/@rbmweb/canvas/android/src/main/java/com/wwimmo/imageeditor/utils/entities/MotionEntity.java Line no.: 78 and 79 Changes: 78: this.canvasWidth = canvasWidth; ---> this.canvasWidth = Math.max(1, canvasWidth); 79: this.canvasHeight = canvasHeight; ---> this.canvasHeight = Math.max(1, canvasHeight);