Skip to content

target client: failed to solve: process "/bin/sh -c npm run build" did not complete successfully: exit code: 1 #65

@boj-cyber

Description

@boj-cyber

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions