Skip to content

TypeError: Sortable is not a constructor #13

@PeterDraex

Description

@PeterDraex

Hi, I've followed the tutorial on how to use Sortable in my project.

I've included the Sortable script in my index.html:

 <script src="https://cdnjs.cloudflare.com/ajax/libs/Sortable/1.13.0/Sortable.min.js"></script>

and I've checked via Developer Tools that it's loaded correctly.

but on load my page crashes:

   Microsoft.JSInterop.JSException: Sortable is not a constructor
      TypeError: Sortable is not a constructor
          at Module.init (.../Shared/SortableList.razor.js:2:20)

I've checked Sortable and new Sortable in browser console and this is the output:
image

Is SortableList.razor.js incompatible with Sortable 1.13.0?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions