question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"echarts"' has no exported member named 'EChartOption'. Did you mean 'EChartsOption' instead?

See original GitHub issue

Hi,

I am using Angular 9 along with "ngx-echarts": "5.2.2" and "echarts": "5.0.0".

Everything works fine accept while setting icon: 'circle' for legends. It says below thing.

Type ‘{ icon: string; top: string; left: string; orient: “vertical”; }’ is not assignable to type ‘LegendOption | ScrollableLegendOption | (LegendOption | ScrollableLegendOption)[]’.

As per example in ngx-echarts I can’t use import { EChartOption } from 'echarts';

I have checked that icon is available in EchartOption instead of Echart**s**Option

Is there anything i am missing?

After installing @types/echarts my code is working and showing legend with circle icon but have random error that it can’t find EchartOption in echarts (My angular is not taking care of this and running application by ignoring this error)

RIght now i went with import { EChartsOption } from 'echarts'; and removed @types/echarts library. And i can’t change legend icon for the moment 😦 Any help?

Thanks, Jayesh

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
tmtroncommented, Mar 9, 2021

When yo use echarts 5 you MUST NOT install @types/echarts, because echarts 5 is now written in typescript: i.e. the echarts package already includes the correct types for this version.

There have been many changes between echarts 4 and echarts5 - one of them is that EchartOption is now called EchartsOption (with plural “s”)

0reactions
jayudhandhacommented, Mar 13, 2021

If anyone come here and wants to answer, please visit below link.

StackOverflow

Read more comments on GitHub >

github_iconTop Results From Across the Web

"echarts"' has no exported member named 'EChartOption'. Did ...
There have been many changes between echarts 4 and echarts5 - one of them is that EchartOption is now called EchartsOption (with plural...
Read more >
echarts"' has no exported member named 'EChartOption'. Did ...
Coding example for the question "echarts"' has no exported member named 'EChartOption'. Did you mean 'EChartsOption' instead?-angular.js.
Read more >
angualr error · Issue #9436 · apache/echarts - GitHub
EChartOption ' has no exported member 'TextStyle'. node_modules/@types/echarts/index.d.ts(1002,13): error TS2304: Cannot find name 'SeriesLine'.
Read more >
“echarts”' has no exported member named 'EChartOption'. Did ...
“echarts”' has no exported member named 'EChartOption'. Did you mean 'EChartsOption' instead? ... import echarts, { EChartOption } from 'echarts';.
Read more >
ngx-echarts - npm
ngx-echarts is an Angular (ver >= 2.x) directive for ECharts (ver >= 3.x) ... You can also directly pass the echarts instead which...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found