ecomfe / vue-echarts

Vue.js component for Apache ECharts™.
https://vue-echarts.dev
MIT License
9.43k stars 1.48k forks source link

The `Component [feature] is used but not imported.` warnings are only partially implemented.. #733

Closed francisashley closed 11 months ago

francisashley commented 11 months ago

Confirmation

How are you introducing Vue-ECharts into your project?

ES Module imports

Versions

^6.6.1

Details

Spent ages trying to figure out why xAxis.markArea was not working until testing another feature that threw Component visualMap is used but not imported. This issue would have been resolved faster if this warning was in place for markArea.

Reproduction

null

Justineo commented 11 months ago

Please report this to https://github.com/apache/echarts.

But if I understand correctly ECharts core cannot know the options extended by components if they are not imported and used. It only throws error if you are using some options configured by the component name (eg. visualMap).