**ERROR** Failed to apply patch for package @rbmweb/canvas at path
- Dominant language
- TypeScript
- Stars
- 11.2k
- Forks
- 325
- PR merge metrics
- No merged PRs in 30d
Description
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](https://github.com/user-attachments/files/20642687/%40rbmweb%2Bcanvas%2B1.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);
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.