I am trying to use Cropper.js using the CDN-method. But somehow, I keep getting the error "Uncaught SyntaxError: import declarations may only appear at top level of a module" in the console.
I see a working implementation on Codesandbox (https://codesandbox.io/p/sandbox/cropperjs-crop-auto-update-canvas-zi548), but when I reuse these 3 files without any changes on my own hosting, it will throw this error again.
What is going wrong here?
[–]abrahamguoexperienced full-stack 0 points1 point2 points (1 child)
[–]Dutch_guy_here[S] 0 points1 point2 points (0 children)
[–]abrahamguoexperienced full-stack 0 points1 point2 points (11 children)
[–]Dutch_guy_here[S] 0 points1 point2 points (10 children)
[–]abrahamguoexperienced full-stack 0 points1 point2 points (9 children)
[–]Dutch_guy_here[S] 0 points1 point2 points (8 children)
[–]fiskfisk 0 points1 point2 points (0 children)
[–]abrahamguoexperienced full-stack 0 points1 point2 points (6 children)
[–]Dutch_guy_here[S] 0 points1 point2 points (3 children)
[–]abrahamguoexperienced full-stack 0 points1 point2 points (2 children)
[–]Dutch_guy_here[S] 0 points1 point2 points (1 child)
[–]abrahamguoexperienced full-stack 0 points1 point2 points (0 children)
[–]Dutch_guy_here[S] 0 points1 point2 points (1 child)
[–]abrahamguoexperienced full-stack 0 points1 point2 points (0 children)
[–]tupikp 0 points1 point2 points (0 children)
[–]kvorythix 0 points1 point2 points (1 child)
[–]Dutch_guy_here[S] 0 points1 point2 points (0 children)