Closed laterdays closed 1 year ago
Failed to resolve component: cropper-canvas
For on-demand usage, in order to enable these custom elements, you need to manually call the $define
static method of each Class constructor.
import CropperCanvas from '@cropper/element-canvas';
import CropperImage from '@cropper/element-image';
import CropperHandle from '@cropper/element-handle';
// ...
CropperCanvas.$define();
CropperImage.$define();
CropperHandle.$define();
// ...
after manually call the $define static method of each Class constructor still appear the issue in vue component
@F-OlO-Y For Vue, you should tell Vue that all <cropper-* />
elements are custom elements. See Using Custom Elements in Vue
Describe the bug Class constructor CropperCanvas cannot be invoked without 'new'
To Reproduce
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context Add any other context about the problem here.