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

**ERROR** Failed to apply patch for package @rbmweb/canvas at path

Open WT1401 opened this issue 7 months ago • 0 comments

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

@rbmweb+canvas+1.0.0.patch

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);

WT1401 avatar Jun 08 '25 03:06 WT1401