JS Error on resize: TypeError: Cannot convert undefined or null to object

Created on 15 June 2024, 7 months ago

Problem/Motivation

I've installed the Image widget crop module and I'm unable to use it because there is a javascript error as soon as I try to resized an image.

Uncaught TypeError: Cannot convert undefined or null to object
at assign ()
at e.cropMove (cropper.min.js:10:17016)

Steps to reproduce

- Install the Image widget crop module, create a crop style with any ratio, apply this crop style to an image.
- Change the form widget for the image to the widget
- Create/update a content based on this widget, upload the image, the crop component is displayed
- When you try to resize the selection square of the visual resize component, it does move and we get the JavaScript error repeating until we stop moving the mouse.

Development mode is off.
JS/CSS of the crop library are loaded via CDN using the default URL (4.0.0)

Proposed resolution

Could you please confirm that this module is still working for you and that it's a issue related only to my project?

🐛 Bug report
Status

Active

Version

2.4

Component

User interface

Created by

🇧🇪Belgium bpironet

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024