Skip to content

File '/web-app/node_modules/canvas-datagrid/dist/types.d.ts' is not a module. #567

@ug1989

Description

@ug1989
image

Expected behavior and actual behavior.

typescript project can read types correctly

Steps to reproduce the problem.

In any ts project, yarn add canvas-datagrid && import canvasDatagrid from 'canvas-datagrid' show the error

Specifications like the version of the project, operating system, or hardware.

--

The way I tried locally

When I edit node_modules/canvas-datagrid/dist/types.d.ts file with add export = canvasDatagrid;, vscode can read the type definition correctly

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions