syampillai/SOCharts

Not compatible with vaadin 23.2.0 and Vite

Closed this issue · 0 comments

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 | };
...
    ```