Skip to content

[Bug] import * as echarts from echarts is failing linting #20448

@NavneetVaid

Description

@NavneetVaid

Version

5.4.3

Link to Minimal Reproduction

NA

Steps to Reproduce

Try importing echarts like import * as echarts from echarts and it will fail linting with eslint 9+ saying Rule: "import/no-deprecated" failed.

It works with const echarts = require('echarts/lib/echarts');

Current Behavior

It is failing with import

Expected Behavior

It should pass linting with both imports

Environment

- OS:macOS Sonoma
- Browser: Chrome
- Framework: Angular 18

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugenThis issue is in EnglishinactiveNot active for some time or no response from the author. Will be closed soon.missing-demoThe author should provide a demo.pendingWe are not sure about whether this is a bug/new feature.waiting-for: author

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions