Skip to content

Error TS2567 when using this plugin in version 2.0.0 #721

@hemmoleg

Description

@hemmoleg

Hi,

when I install this plugin and import it I get two errors:

Error: node_modules/chart.js/types/index.esm.d.ts:561:21 - error TS2567: Enum declarations can only merge with namespace or other enum declarations.

561 export declare enum UpdateModeEnum {
                        ~~~~~~~~~~~~~~

  node_modules/chartjs-plugin-zoom/types/index.d.ts:16:14
    16   const enum UpdateModeEnum {
                    ~~~~~~~~~~~~~~
    'UpdateModeEnum' was also declared here.

and

Error: node_modules/chartjs-plugin-zoom/types/index.d.ts:16:14 - error TS2567: Enum declarations can only merge with namespace or other enum declarations.

16   const enum UpdateModeEnum {
                ~~~~~~~~~~~~~~

  node_modules/chart.js/types/index.esm.d.ts:561:21
    561 export declare enum UpdateModeEnum {
                            ~~~~~~~~~~~~~~
    'UpdateModeEnum' was also declared here.

I am using chartjs 3.8.0.
When using version 1.2.1 of this plugin everything works. However I dont think thats a proper solution.
Has anyone else run into this issue?

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