-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Describe the bug
[ERROR] src/main/frontend/src/image-crop.tsx(51,8): error TS2769: No overload matches this call.
[ERROR] Overload 1 of 2, '(crop: Pick<PercentCrop, "unit"> & Partial<Omit<PercentCrop, "unit">>, aspect: number, containerWidth: number, containerHeight: number): PercentCrop', gave the following error.
[ERROR] Type '"px" | "%"' is not assignable to type '"%"'.
[ERROR] Type '"px"' is not assignable to type '"%"'.
[ERROR] Overload 2 of 2, '(crop: Pick<PixelCrop, "unit"> & Partial<Omit<PixelCrop, "unit">>, aspect: number, containerWidth: number, containerHeight: number): PixelCrop', gave the following error.
[ERROR] Type '"px" | "%"' is not assignable to type '"px"'.
[ERROR] Type '"%"' is not assignable to type '"px"'.
Expected behavior
Source code should compile
Minimal reproducible example
Please find attached (check the sources under src/main/frontend
).
ImageCrop.zip
Add-on Version
1.1.1-SNAPSHOT
Vaadin Version
24.6.5
Additional information
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
In Progress