Skip to content

import { Sortable } from 'sortablejs' #1693

Open
@lwei-jlu

Description

@lwei-jlu

Problem:

hi,when i use sortablejs and @types/stotablejs in my app, i cannot use import { Sortable } from 'sortablejs' its cause to error, and cannot use import * as Sortable from 'sortablejs', its cause to tip: sortable is not a construcor
i think maybe is for default export, and i cannot want to use allowSyntheticDefaultImports : true,
so how can i export sortablejs?

JSBin/JSFiddle demonstrating the problem:


Before you create an issue, check it:

  1. Try master-branch, perhaps the problem has been solved;
  2. Use the search, maybe we already have an answer;
  3. If not found, create an example on jsbin.com (draft) and describe the problem.

Bindings:

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions