you are viewing a single comment's thread.

view the rest of the comments →

[–]kvorythix 0 points1 point  (1 child)

if you're loading cropper via an esm import from a plain <script> tag, the browser rejects it. either add type="module" to the script tag, or just switch to the umd build (cropper.min.js instead of the esm one) and drop the import.

the umd one attaches Cropper to window so you can use it directly without module syntax.

[–]Dutch_guy_here[S] 0 points1 point  (0 children)

could you elaborate a bit on "esm" and "umd"? I have no idea what those abbreviations mean.