canove / whaticket-community

A very simple Ticket System based on WhatsApp messages, that allow multi-users in same WhatsApp account.
MIT License
1.57k stars 800 forks source link

Multiple typescript errors when building #492

Closed allgood closed 1 year ago

allgood commented 1 year ago

Multiple typescript errors when building

I was using docker to build but think it may happen when building directly through npm

cd backend
docker build

The following errors occurs:

Step 13/19 : RUN npm run build
 ---> Running in c2a97387f5f8

> backend@1.0.0 build /usr/src/app
> tsc

node_modules/@types/express-serve-static-core/index.d.ts(99,68): error TS1110: Type expected.
node_modules/@types/express-serve-static-core/index.d.ts(99,77): error TS1005: '}' expected.
node_modules/@types/express-serve-static-core/index.d.ts(99,78): error TS1128: Declaration or statement expected.
node_modules/@types/express-serve-static-core/index.d.ts(99,80): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(101,33): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(101,48): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(102,8): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(108,22): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(108,23): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(108,33): error TS1005: ')' expected.
node_modules/@types/express-serve-static-core/index.d.ts(110,26): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(110,27): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(110,35): error TS1128: Declaration or statement expected.
node_modules/@types/express-serve-static-core/index.d.ts(110,37): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(110,44): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(114,52): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(114,53): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(114,60): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(114,70): error TS1128: Declaration or statement expected.
node_modules/@types/express-serve-static-core/index.d.ts(118,28): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(118,29): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(118,53): error TS1005: '(' expected.
node_modules/@types/express-serve-static-core/index.d.ts(118,55): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(118,62): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(224,41): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(233,31): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(259,62): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(355,49): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(356,59): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(357,5): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(357,25): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(357,44): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(358,31): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(363,84): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(378,13): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(379,14): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(379,29): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(392,20): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(401,28): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(402,45): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(405,13): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(479,56): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(483,48): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(502,35): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(502,58): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(508,36): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(510,13): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(516,53): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(556,26): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(562,31): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(585,24): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(666,20): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(671,46): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(684,46): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(732,40): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(735,22): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(736,51): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(742,13): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(742,68): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(743,13): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(744,13): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(745,13): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(745,68): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(747,43): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(751,48): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(752,44): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(753,47): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(792,40): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(794,54): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(795,31): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(797,35): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(802,26): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(809,49): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(809,64): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(810,66): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(823,49): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(823,64): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(824,66): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(837,52): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(840,26): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(848,54): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(849,12): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(849,39): error TS1109: Expression expected.
node_modules/@types/express-serve-static-core/index.d.ts(882,38): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(883,36): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(891,72): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(896,20): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(896,31): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(905,20): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(916,31): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(919,23): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(923,20): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(923,30): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(923,52): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(927,14): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(927,63): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(928,14): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(929,14): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(944,36): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(946,19): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(958,46): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(972,31): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(972,60): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(975,23): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(975,46): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(977,9): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(994,16): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(994,38): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(994,70): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(1000,12): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(1001,12): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(1071,53): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(1072,12): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(1074,25): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(1089,52): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(1104,16): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(1104,29): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(1104,46): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(1140,18): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(1152,18): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(1163,17): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(1166,18): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(1170,31): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(1170,48): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(1186,16): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(1187,33): error TS1005: ';' expected.
node_modules/@types/express-serve-static-core/index.d.ts(1255,1): error TS1160: Unterminated template literal.
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! backend@1.0.0 build: `tsc`
npm ERR! Exit status 2
npm ERR! 
npm ERR! Failed at the backend@1.0.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2022-11-19T14_22_52_330Z-debug.log
The command '/bin/sh -c npm run build' returned a non-zero code: 2
stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.