-
Notifications
You must be signed in to change notification settings - Fork 629
Description
How can this be solved?
[client build 11/11] RUN npm run build:
0.361
0.361 > [email protected] build
0.361 > react-scripts build
0.361
1.377 Creating an optimized production build...
16.43 Failed to compile.
16.43
16.43 TS2322: Type '(t: number) => string' is not assignable to type '((label: ReactNode, payload: readonly Payload<ValueType, NameType>[]) => ReactNode) & ((label: any, payload: Payload<ValueType, NameType>[]) => ReactNode)'.
16.43 Type '(t: number) => string' is not assignable to type '(label: ReactNode, payload: readonly Payload<ValueType, NameType>[]) => ReactNode'.
16.43 Types of parameters 't' and 'label' are incompatible.
16.43 Type 'ReactNode' is not assignable to type 'number'.
16.43 Type 'undefined' is not assignable to type 'number'.
16.43 187 | <YAxis domain={['auto', 'auto']} />
16.43 188 | <Tooltip
16.43 > 189 | labelFormatter={(t: number) => new Date(t).toLocaleTimeString()}
16.43 | ^^^^^^^^^^^^^^
16.43 190 | contentStyle={{ borderRadius: '8px', border: 'none', boxShadow: '0 4px 6px -1px rgb(0 0 0 / 0.1)' }}
16.43 191 | />
16.43 192 |
16.43
16.43