Skip to content

Issue with standalone import and TypeScript ? #2399

Open

Description

@fraxken

I'm migrating one of my project using vis-network from JS to TS. I'm currently using /standalone export but typing seems wrong.

import {
  Network,
  type IdType,
  type DataInterfaceNodes,
  type DataInterfaceEdges
} from "vis-network/standalone";

Produce error such as Module '"vis-network/standalone"' has no exported member 'Network'

Which is quite weird because it compile and work well. I also tested /esnext but same.

I'm missing something ?

Version:
vis-network: 10.0.2
vis-data: 8.0.3

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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