eapatel commented on issue #16095:
URL: https://github.com/apache/echarts/issues/16095#issuecomment-978812974


   Hi @pissang, want to use replaceMerge as suggest but before that I need to 
upgrade echarts version from v4 to v5 in my project.
   
   I've already finished upgrading the echarts to v5.2.2 in my project but 
while serving my app in angular, it throws below error. 
   
   ```
   ERROR in ../node_modules/echarts/types/dist/echarts.d.ts:1629:30 - error 
TS2304: Cannot find name 'Omit'.
   
   1629 declare type SVGPathOption = Omit<PathProps, 'shape' | 'buildPath'>;
                                     ~~~~
   ../node_modules/echarts/types/dist/echarts.d.ts:2457:39 - error TS2304: 
Cannot find name 'Omit'.
   
   2457 interface AxisLabelBaseOption extends Omit<TextCommonOption, 'color'> {
                                              ~~~~
   ../node_modules/echarts/types/dist/echarts.d.ts:3071:54 - error TS2304: 
Cannot find name 'Omit'.
   
   3071 interface AxisPointerOption extends ComponentOption, 
Omit<CommonAxisPointerOption, 'type'> {
                                                             ~~~~
   ../node_modules/echarts/types/dist/echarts.d.ts:3471:37 - error TS2304: 
Cannot find name 'Omit'.
   
   3471 declare type BarSeriesLabelOption = Omit<SeriesLabelOption, 'position'> 
& {
                                            ~~~~
   ../node_modules/echarts/types/dist/echarts.d.ts:6805:35 - error TS2304: 
Cannot find name 'Omit'.
   
   6805 interface LineLabelOption extends Omit<LabelOption, 'distance' | 
'position'> {
                                          ~~~~
   ../node_modules/echarts/types/dist/echarts.d.ts:7447:7 - error TS2304: 
Cannot find name 'Omit'.
   
   7447 opt?: Omit<DisplayableProps, 'style'>, rect?: ZRRectLike): SVGPath$1 | 
ZRImage;
              ~~~~
   ../node_modules/echarts/types/dist/echarts.d.ts:8647:113 - error TS2304: 
Cannot find name 'Omit'.
   
   8647 declare type ComposeUnitOption<OptionUnion extends ComponentOption> = 
CheckMainType<GetMainType<OptionUnion>> & Omit<ECBasicOption, 'baseOption' | 
'options'> & {
                                                                                
                                        ~~~~
   ../node_modules/echarts/types/dist/echarts.d.ts:8737:16 - error TS2304: 
Cannot find name 'Omit'.
   
   8737     dayLabel?: Omit<LabelOption, 'position'> & {
                       ~~~~
   ../node_modules/echarts/types/dist/echarts.d.ts:8760:18 - error TS2304: 
Cannot find name 'Omit'.
   
   8760     monthLabel?: Omit<LabelOption, 'position'> & {
                         ~~~~
   ../node_modules/echarts/types/dist/echarts.d.ts:8779:17 - error TS2304: 
Cannot find name 'Omit'.
   
   8779     yearLabel?: Omit<LabelOption, 'position'> & {
                        ~~~~
   ../node_modules/echarts/types/dist/echarts.d.ts:8905:39 - error TS2304: 
Cannot find name 'Omit'.
   
   8905 interface TimelineLabelOption extends Omit<LabelOption, 'position'> {
                                              ~~~~
   ../node_modules/echarts/types/dist/echarts.d.ts:9477:34 - error TS2304: 
Cannot find name 'Omit'.
   
   9477 interface PieLabelOption extends Omit<SeriesLabelOption, 'rotate' | 
'position'> {
                                         ~~~~
   ../node_modules/echarts/types/dist/echarts.d.ts:9506:35 - error TS2304: 
Cannot find name 'Omit'.
   
   9506 interface PieSeriesOption extends 
Omit<SeriesOption<PieStateOption<PieCallbackDataParams>, ExtraStateOption>, 
'labelLine'>, PieStateOption<PieCallbackDataParams>, CircleLayoutOptionMixin, 
BoxLayoutOptionMixin, SeriesEncodeOptionMixin {
                                          ~~~~
   ../node_modules/echarts/types/dist/echarts.d.ts:9914:21 - error TS2304: 
Cannot find name 'Omit'.
   
   9914         lineStyle?: Omit<LineStyleOption, 'color'> & {
                            ~~~~
   ../node_modules/echarts/types/dist/echarts.d.ts:9948:34 - error TS2304: 
Cannot find name 'Omit'.
   
   9948 declare type FunnelLabelOption = Omit<SeriesLabelOption, 'position'> & {
                                         ~~~~
   ../node_modules/echarts/types/dist/echarts.d.ts:10374:39 - error TS2304: 
Cannot find name 'Omit'.
   
   10374 interface SunburstLabelOption extends Omit<SeriesLabelOption, 'rotate' 
| 'position'> {
                                               ~~~~
   ../node_modules/echarts/types/dist/echarts.d.ts:10506:46 - error TS2304: 
Cannot find name 'Omit'.
   
   10506 interface GraphicComponentTextOption extends 
Omit<GraphicComponentDisplayableOption, 'textContent' | 'textConfig'> {
   
   ```
   can please guide me what to do to solve it?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org
For additional commands, e-mail: commits-h...@echarts.apache.org

Reply via email to