"npm run build" did not complete successfully: exit code: 1

guimazetto
HOBBY

a year ago

I'm tottaly new into building, servers, deploys, and I'm stucked on this build error. Can someone gently help me?

I could succesfully build this repo on Railway two days ago, and now I'm getting this error in the last step.

"/bin/sh -c npm run build" did not complete successfully: exit code: 1

---------------

Github repo: https://github.com/EvolutionAPI/evolution-api/

---------------

Build error: "/bin/sh -c npm run build" did not complete successfully: exit code: 1

---------------

Build log (last step):

[builder 7/7] RUN npm run build:

0.646

0.646 > evolution-api@1.8.2 build

0.646 > tsc

0.646

8.978 src/api/services/channels/whatsapp.baileys.service.ts(1504,55): error TS2345: Argument of type '{ chats: Chat[]; contacts: Contact[]; messages: IWebMessageInfo[]; isLatest?: boolean; progress?: number; syncType?: HistorySyncType; peerDataRequestSessionId?: string; }' is not assignable to parameter of type '{ chats: Chat[]; contacts: Contact[]; messages: IWebMessageInfo[]; isLatest: boolean; }'.

8.978 Property 'isLatest' is optional in type '{ chats: Chat[]; contacts: Contact[]; messages: IWebMessageInfo[]; isLatest?: boolean; progress?: number; syncType?: HistorySyncType; peerDataRequestSessionId?: string; }' but required in type '{ chats: Chat[]; contacts: Contact[]; messages: IWebMessageInfo[]; isLatest: boolean; }'.

8.978 src/api/services/channels/whatsapp.baileys.service.ts(2926,48): error TS2345: Argument of type 'WAPrivacyValue' is not assignable to parameter of type 'WAPrivacyGroupAddValue'.

8.978 Type '"none"' is not assignable to type 'WAPrivacyGroupAddValue'.

Dockerfile:18

16 | COPY . .

17 |

18 | >>> RUN npm run build

19 |

20 | FROM node:20.7.0-alpine AS final

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

Closed

1 Replies

a year ago

Hello,

Unfortunately we aren't able to help with application level errors, this error is purely an issue with your application, please do some research on that error.


Status changed to Closed brody 11 months ago