syampillai / SOCharts

A wrapper around the "echarts" JavaScript library to use it as a Vaadin component.
Apache License 2.0
27 stars 11 forks source link

Not compatible with vaadin 23.2.0 and Vite #8

Closed mrgreywater closed 2 years ago

mrgreywater commented 2 years ago

When trying to use the library with Vaadin 23.2.0 which deprecates Webpack and uses Vite instead, a bunch of exceptions are thrown.

./node_modules/echarts/types/src/chart/bar/BarSeries.d.ts:44:5
    42 |     type: string;
    43 |     static dependencies: string[];
  > 44 |     coordinateSystem: Cartesian2D | Polar;
       |     ^^^^^^^^^^^^^^^^
    45 |     getInitialData(): SeriesData;
    46 |     /**
    47 |      * @override
[TypeScript] Property 'image' does not exist on type '(ImageStyleProps & TransitionOptionMixin<ImageStyleProps>) | undefined'.
./node_modules/echarts/types/src/chart/custom/CustomSeries.d.ts:223:49
    221 |     customPathData: string;
    222 |     customGraphicType: string;
  > 223 |     customImagePath: CustomImageOption['style']['image'];
        |                                                 ^^^^^^^
    224 |     txConZ2Set: number;
    225 |     option: CustomElementOption;
    226 | };
...