GitHub user ypandey-fluidata added a comment to the discussion: Apache Superset 
6.0.0: Big Number (Legacy) chart, how to override default “No data” empty-state 
messages when embedding charts


COPY frontend_overrides/native_filters/index.tsx \
  src/dashboard/components/nativeFilters/FilterBar/index.tsx

COPY frontend_overrides/native_filters/BigNumberViz.tsx \
  plugins/plugin-chart-echarts/src/BigNumber/BigNumberViz.tsx

# Build frontend (hashes + manifest generated)
RUN npm ci
RUN npm run build

FROM apache/superset:6.0.0

USER root

RUN pip install --no-cache-dir psycopg2-binary

COPY --from=frontend-builder \
  /superset/superset/static/assets \
  /app/superset/static/assets

USER superset

#Error
ERROR in ./plugins/plugin-chart-echarts/src/BigNumber/BigNumberViz.tsx 21:0-42
Module not found: Error: Can't resolve '@apache-superset/core' in 
'/superset/superset-frontend/plugins/plugin-chart-echarts/src/BigNumber'
 
ERROR in ./plugins/plugin-chart-echarts/src/BigNumber/BigNumberViz.tsx 23:0-60
Module not found: Error: Can't resolve '@apache-superset/core/ui' in 
'/superset/superset-frontend/plugins/plugin-chart-echarts/src/BigNumber'
 
ERROR in ./plugins/plugin-chart-echarts/src/BigNumber/BigNumberViz.tsx:21:19
TS2307: Cannot find module '@apache-superset/core' or its corresponding type 
declarations.
    19 |  */
    20 | import { useState, useEffect, useRef, MouseEvent } from 'react';
> 21 | import { t } from '@apache-superset/core';
       |                   ^^^^^^^^^^^^^^^^^^^^^^^
    22 | import {
    23 |   getNumberFormatter,
    24 |   getTimeFormatter,
 
ERROR in ./plugins/plugin-chart-echarts/src/BigNumber/BigNumberViz.tsx:30:34
TS2307: Cannot find module '@apache-superset/core/ui' or its corresponding type 
declarations.
    28 |   BinaryQueryObjectFilterClause,
    29 | } from '@superset-ui/core';
> 30 | import { styled, useTheme } from '@apache-superset/core/ui';
       |                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^
    31 | import Echart from '../components/Echart';
    32 | import { BigNumberVizProps } from './types';
    33 | import { EventHandlers } from '../types';
 
ERROR in ./plugins/plugin-chart-echarts/src/BigNumber/BigNumberViz.tsx:383:11
TS2322: Type '{ refs: Refs; width: number; height: number; echartOptions: 
ECBasicOption; eventHandlers: EventHandlers; vizType: any; }' is not assignable 
to type 'IntrinsicAttributes & EchartsProps & RefAttributes<EchartsHandler>'.
  Property 'vizType' does not exist on type 'IntrinsicAttributes & EchartsProps 
& RefAttributes<EchartsHandler>'.
    381 |           echartOptions={echartOptions}
    382 |           eventHandlers={eventHandlers}
> 383 |           vizType={formData?.vizType}
        |           ^^^^^^^
    384 |         />
    385 |       )
    386 |     );
 
ERROR in ./plugins/plugin-chart-echarts/src/BigNumber/BigNumberViz.tsx:498:8
TS7031: Binding element 'theme' implicitly has an 'any' type.
    496 |
    497 | const StyledBigNumberVis = styled(BigNumberVis)`
> 498 |   ${({ theme }) => `
        |        ^^^^^
    499 |     font-family: ${theme.fontFamily};
    500 |     position: relative;
    501 |     display: flex;
[+] Building 0/1
⠦ Service superset_test  Building                                               
                                                                      655.6s
The command '/bin/sh -c npm run build' returned a non-zero code: 1

I tried similar way to implement the change of the file but i got this error. I 
think this is the old code and it is not able to find the module.

[BigNumberViz.tsx](https://github.com/user-attachments/files/24614100/BigNumberViz.tsx)

GitHub link: 
https://github.com/apache/superset/discussions/41053#discussioncomment-17309096

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: 
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to