Skip to content

vue3+ts 编译错误[Bug]  #16417

@virtual1680

Description

@virtual1680

Version

5.2.2

Link to Minimal Reproduction

No response

Steps to Reproduce

yarn run v1.22.11
warning package.json: No license field
$ vue-tsc --noEmit && vite build
node_modules/@types/echarts/index.d.ts:42:14 - error TS2383: Overload signatures must all be exported or non-exported.

42 function init(
~~~~

node_modules/@types/echarts/index.d.ts:67:14 - error TS2383: Overload signatures must all be exported or non-exported.

67 function connect(group: string | ECharts[]): void;
~~~~~~~

node_modules/@types/echarts/index.d.ts:75:14 - error TS2383: Overload signatures must all be exported or non-exported.

75 function disConnect(group: string): void;
~~~~~~~~~~

node_modules/@types/echarts/index.d.ts:83:14 - error TS2383: Overload signatures must all be exported or non-exported.

83 function dispose(target: ECharts | HTMLDivElement | HTMLCanvasElement): void;

Current Behavior

yarn build

Expected Behavior

编译通过

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugpendingWe are not sure about whether this is a bug/new feature.staleInactive for a long time. Will be closed in 7 days.typescriptwaiting-for: author

    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