Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Svelte: Illegal Constructor #1121

Open
imperator-maximus opened this issue Jun 17, 2024 · 0 comments
Open

Svelte: Illegal Constructor #1121

imperator-maximus opened this issue Jun 17, 2024 · 0 comments

Comments

@imperator-maximus
Copy link

Environments

  • Framework name: Svelte
  • Framework version: 3.59.2
  • Moveable Component version: 0.45.0
  • Testable Address(optional):

Description

`
<svelte:options tag="my-custom-tag"></svelte:options>

<script> import Moveable from "svelte-moveable" let rect </script>
<div
            class="target"
            bind:this={rect}
            style={`max-width: 500px;max-height: 500px;min-width: 100px;min-height: 100px;`}
        >Target</div>
<Moveable
            target={rect}
            draggable={true}
            throttleDrag={true}
            edgeDraggable={true}
            resizable={true}
        on:drag={({ detail: e }) => {
                e.target.style.transform = e.transform;
           }}/>               

`

index.mjs:2205 Uncaught (in promise) TypeError: Illegal constructor
at new SvelteElement (index.mjs:2205:13)
at new Moveable$1 (Moveable.svelte:61:32)
at create_if_block (TestEnv.svelte:25:12)
at Object.update [as p] (App.svelte:62:22)
at update (index.mjs:1347:36)
at flush (index.mjs:1307:17)

Thank you!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant