'How to import forked echart

So far, I use the standard way to load from node_modules.

   import echarts from 'echarts'

Due to the my project requirement, I have to modify some tree layout source code and build my own echart. And I am having difficult to import.

I tried three ways, all failed.

  • import echart/dist folder
  • import echart folder
  • import echart.min.js

Could someone tell me the recommended way to import forked echarts? Thank you very much.



Solution 1:[1]

I had the answer from echart developers.

https://github.com/apache/echarts/issues/16858#event-6405399579

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 user1193256