Skip to content

Issue with standalone import and TypeScript ? #2399

@fraxken

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions