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

Whaticket QR error in Public Server URGENT!!!! #476

Closed jakeharriss closed 1 year ago

jakeharriss commented 1 year ago

Hello we are facing problems to make the app to work in our public server, it works perfect in the localhost but when installed in the public server it never loads a qr to scan, have you guys ever faced this issue? Do you know how to fix it?

jakeharriss commented 1 year ago

At the end of this post i posted all the errors we got and fixed, maybe they can be fixed and compiled in a next release to make easier future installs without the errors in the code

jakeharriss commented 1 year ago

In this screen apparently there is a problem with the websocket connection

jakeharriss commented 1 year ago

4DAC65FC-0723-4F74-8C49-7F62178091F2

jakeharriss commented 1 year ago

Ubuntu does not shows any error in terminal but we dont know why the whatsapp qr request stays spinning forever and never pop up the qr code to scan

jakeharriss commented 1 year ago

This is how it appear in my public server

jakeharriss commented 1 year ago

image

jakeharriss commented 1 year ago

This is how it appear in my localhost testing server

jakeharriss commented 1 year ago

image

jakeharriss commented 1 year ago

*initially we had all this errors when installed in the public server with ubuntu 22, but all errors were completely fixed***

node_modules/@types/express-serve-static-core/index.d.ts:745:13 - error TS1005: ';' expected.

745 * - dotfiles serve dotfiles, defaulting to false; can be "allow" to send them


node_modules/@types/express-serve-static-core/index.d.ts:745:68 - error TS1005: ';' expected.

745      *   - `dotfiles` serve dotfiles, defaulting to false; can be `"allow"` to send them

node_modules/@types/express-serve-static-core/index.d.ts:747:43 - error TS1005: ';' expected.

747 * Other options are passed along to send.


node_modules/@types/express-serve-static-core/index.d.ts:751:48 - error TS1005: ';' expected.

751      *  The following example illustrates how `res.sendFile()` may

node_modules/@types/express-serve-static-core/index.d.ts:752:44 - error TS1005: ';' expected.

752 * be used as an alternative for the static() middleware for


node_modules/@types/express-serve-static-core/index.d.ts:753:47 - error TS1005: ';' expected.

753      *  dynamic situations. The code backing `res.sendFile()` is actually

node_modules/@types/express-serve-static-core/index.d.ts:792:40 - error TS1005: ';' expected.

792 * Transfer the file at the given path as an attachment.


node_modules/@types/express-serve-static-core/index.d.ts:794:54 - error TS1005: ';' expected.

794      * Optionally providing an alternate attachment `filename`,

node_modules/@types/express-serve-static-core/index.d.ts:795:31 - error TS1005: ';' expected.

795 * and optional callback fn(err). The callback is invoked ~~

node_modules/@types/express-serve-static-core/index.d.ts:797:35 - error TS1005: ';' expected.

797 * ocurred. Be sure to check res.headersSent if you plan to respond.


node_modules/@types/express-serve-static-core/index.d.ts:802:26 - error TS1005: ';' expected.

802      * This method uses `res.sendfile()`.

node_modules/@types/express-serve-static-core/index.d.ts:809:49 - error TS1005: ';' expected.

809 * Set Content-Type response header with type through mime.lookup()


node_modules/@types/express-serve-static-core/index.d.ts:809:64 - error TS1005: ';' expected.

809      * Set _Content-Type_ response header with `type` through `mime.lookup()`

node_modules/@types/express-serve-static-core/index.d.ts:810:66 - error TS1005: ';' expected.

810 * when it does not contain "/", or set the Content-Type to type otherwise.


node_modules/@types/express-serve-static-core/index.d.ts:823:49 - error TS1005: ';' expected.

823      * Set _Content-Type_ response header with `type` through `mime.lookup()`

node_modules/@types/express-serve-static-core/index.d.ts:823:64 - error TS1005: ';' expected.

823 * Set Content-Type response header with type through mime.lookup()


node_modules/@types/express-serve-static-core/index.d.ts:824:66 - error TS1005: ';' expected.

824      * when it does not contain "/", or set the Content-Type to `type` otherwise.

node_modules/@types/express-serve-static-core/index.d.ts:837:52 - error TS1005: ';' expected.

837 * Respond to the Acceptable formats using an obj


node_modules/@types/express-serve-static-core/index.d.ts:840:26 - error TS1005: ';' expected.

840      * This method uses `req.accepted`, an array of

node_modules/@types/express-serve-static-core/index.d.ts:848:54 - error TS1005: ';' expected.

848 * you may alter this within the callback using res.type()


node_modules/@types/express-serve-static-core/index.d.ts:849:12 - error TS1005: ';' expected.

849      * or `res.set('Content-Type', ...)`.

node_modules/@types/express-serve-static-core/index.d.ts:849:39 - error TS1109: Expression expected.

849 * or res.set('Content-Type', ...). ~

node_modules/@types/express-serve-static-core/index.d.ts:882:38 - error TS1005: ';' expected.

882 * By default Express passes an Error


node_modules/@types/express-serve-static-core/index.d.ts:883:36 - error TS1005: ';' expected.

883      * with a `.status` of 406 to `next(err)`

node_modules/@types/express-serve-static-core/index.d.ts:891:72 - error TS1005: ';' expected.

891 * Set Content-Disposition header to attachment with optional filename.


node_modules/@types/express-serve-static-core/index.d.ts:896:20 - error TS1005: ';' expected.

896      * Set header `field` to `val`, or pass

node_modules/@types/express-serve-static-core/index.d.ts:896:31 - error TS1005: ';' expected.

896 * Set header field to val, or pass


node_modules/@types/express-serve-static-core/index.d.ts:905:20 - error TS1005: ';' expected.

905      * Aliased as `res.header()`.

node_modules/@types/express-serve-static-core/index.d.ts:916:31 - error TS1005: ';' expected.

916 /* Get value for header field. /


node_modules/@types/express-serve-static-core/index.d.ts:919:23 - error TS1005: ';' expected.

919     /** Clear cookie `name`. */

node_modules/@types/express-serve-static-core/index.d.ts:923:20 - error TS1005: ';' expected.

923 * Set cookie name to val, with the given options.


node_modules/@types/express-serve-static-core/index.d.ts:923:30 - error TS1005: ';' expected.

923      * Set cookie `name` to `val`, with the given `options`.

node_modules/@types/express-serve-static-core/index.d.ts:923:52 - error TS1005: ';' expected.

923 * Set cookie name to val, with the given options.


node_modules/@types/express-serve-static-core/index.d.ts:927:14 - error TS1005: ';' expected.

927      *    - `maxAge`   max-age in milliseconds, converted to `expires`

node_modules/@types/express-serve-static-core/index.d.ts:927:63 - error TS1005: ';' expected.

927 * - maxAge max-age in milliseconds, converted to expires


node_modules/@types/express-serve-static-core/index.d.ts:928:14 - error TS1005: ';' expected.

928      *    - `signed`   sign the cookie

node_modules/@types/express-serve-static-core/index.d.ts:929:14 - error TS1005: ';' expected.

929 * - path defaults to "/"


node_modules/@types/express-serve-static-core/index.d.ts:944:36 - error TS1005: ';' expected.

944      * Set the location header to `url`.

node_modules/@types/express-serve-static-core/index.d.ts:946:19 - error TS1005: ';' expected.

946 * The given url can also be the name of a mapped url, for


node_modules/@types/express-serve-static-core/index.d.ts:958:46 - error TS1005: ';' expected.

958      *   When an application is mounted and `res.location()`

node_modules/@types/express-serve-static-core/index.d.ts:972:31 - error TS1005: ';' expected.

972 * Redirect to the given url with optional response status


node_modules/@types/express-serve-static-core/index.d.ts:972:60 - error TS1005: ';' expected.

972      * Redirect to the given `url` with optional response `status`

node_modules/@types/express-serve-static-core/index.d.ts:975:23 - error TS1005: ';' expected.

975 * The resulting url is determined by res.location(), so


node_modules/@types/express-serve-static-core/index.d.ts:975:46 - error TS1005: ';' expected.

975      * The resulting `url` is determined by `res.location()`, so

node_modules/@types/express-serve-static-core/index.d.ts:977:9 - error TS1005: ';' expected.

977 * "back" etc.


node_modules/@types/express-serve-static-core/index.d.ts:994:16 - error TS1005: ';' expected.

994      * Render `view` with the given `options` and optional callback `fn`.

node_modules/@types/express-serve-static-core/index.d.ts:994:38 - error TS1005: ';' expected.

994 * Render view with the given options and optional callback fn.


node_modules/@types/express-serve-static-core/index.d.ts:994:70 - error TS1005: ';' expected.

994      * Render `view` with the given `options` and optional callback `fn`.
                                                                         ~~

node_modules/@types/express-serve-static-core/index.d.ts:1000:12 - error TS1005: ';' expected.

1000      *  - `cache`     boolean hinting to the engine it should cache

node_modules/@types/express-serve-static-core/index.d.ts:1001:12 - error TS1005: ';' expected.

1001 * - filename filename of the view being rendered


node_modules/@types/express-serve-static-core/index.d.ts:1071:53 - error TS1005: ';' expected.

1071      * Register the given template engine callback `fn`
                                                         ~~

node_modules/@types/express-serve-static-core/index.d.ts:1072:12 - error TS1005: ';' expected.

1072      * as `ext`.

node_modules/@types/express-serve-static-core/index.d.ts:1074:25 - error TS1005: ';' expected.

1074 * By default will require() the engine based on the


node_modules/@types/express-serve-static-core/index.d.ts:1089:52 - error TS1005: ';' expected.

1089      * though note that it aliases this method as `ejs.__express` internally

node_modules/@types/express-serve-static-core/index.d.ts:1104:16 - error TS1005: ';' expected.

1104 * Assign setting to val, or return setting's value.


node_modules/@types/express-serve-static-core/index.d.ts:1104:29 - error TS1005: ';' expected.

1104      * Assign `setting` to `val`, or return `setting`'s value.

node_modules/@types/express-serve-static-core/index.d.ts:1104:46 - error TS1005: ';' expected.

1104 * Assign setting to val, or return setting's value.


node_modules/@types/express-serve-static-core/index.d.ts:1140:18 - error TS1005: ';' expected.

1140      * Check if `setting` is enabled (truthy).

node_modules/@types/express-serve-static-core/index.d.ts:1152:18 - error TS1005: ';' expected.

1152 * Check if setting is disabled.


node_modules/@types/express-serve-static-core/index.d.ts:1163:17 - error TS1005: ';' expected.

1163     /** Enable `setting`. */

node_modules/@types/express-serve-static-core/index.d.ts:1166:18 - error TS1005: ';' expected.

1166 /* Disable setting. /


node_modules/@types/express-serve-static-core/index.d.ts:1170:31 - error TS1005: ';' expected.

1170      * Render the given view `name` name with `options`

node_modules/@types/express-serve-static-core/index.d.ts:1170:48 - error TS1005: ';' expected.

1170 * Render the given view name name with options


node_modules/@types/express-serve-static-core/index.d.ts:1186:16 - error TS1005: ';' expected.

1186      * A node `http.Server` is returned, with this

node_modules/@types/express-serve-static-core/index.d.ts:1187:33 - error TS1005: ';' expected.

1187 * application (which is a Function) as its


node_modules/@types/express-serve-static-core/index.d.ts:1255:1 - error TS1160: Unterminated template literal.

1255 

Found 127 errors.

ahsan@ahsan-XPS-13-7390:/media/ahsan/D1/workspace/whaticket/backend$ tsc --version
Command 'tsc' not found, but can be installed with:
sudo apt install node-typescript
ahsan@ahsan-XPS-13-7390:/media/ahsan/D1/workspace/whaticket/backend$ npm install -g typescript@4.0.3
npm ERR! code EACCES
npm ERR! syscall mkdir
npm ERR! path /usr/local/lib/node_modules
npm ERR! errno -13
npm ERR! Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules'
npm ERR!  [Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules'] {
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   syscall: 'mkdir',
npm ERR!   path: '/usr/local/lib/node_modules'
npm ERR! }
npm ERR! 
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR! 
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/ahsan/.npm/_logs/2022-10-12T02_24_24_270Z-debug-0.log
ahsan@ahsan-XPS-13-7390:/media/ahsan/D1/workspace/whaticket/backend$ sudo npm install -g typescript@4.0.3
[sudo] password for ahsan: 

added 1 package, and audited 2 packages in 3s

found 0 vulnerabilities
ahsan@ahsan-XPS-13-7390:/media/ahsan/D1/workspace/whaticket/backend$ tsc --version
Version 4.0.3
ahsan@ahsan-XPS-13-7390:/media/ahsan/D1/workspace/whaticket/backend$ npm run build

> backend@1.0.0 build
> tsc

node_modules/@types/express-serve-static-core/index.d.ts:99:68 - error TS1110: Type expected.

99 type RemoveTail<S extends string, Tail extends string> = S extends `${infer P}${Tail}` ? P : S;

node_modules/@types/express-serve-static-core/index.d.ts:99:77 - error TS1005: '}' expected.

99 type RemoveTail<S extends string, Tail extends string> = S extends ${infer P}${Tail} ? P : S; ~

node_modules/@types/express-serve-static-core/index.d.ts:99:78 - error TS1128: Declaration or statement expected.

99 type RemoveTail<S extends string, Tail extends string> = S extends ${infer P}${Tail} ? P : S; ~

node_modules/@types/express-serve-static-core/index.d.ts:99:80 - error TS1005: ';' expected.

99 type RemoveTail<S extends string, Tail extends string> = S extends ${infer P}${Tail} ? P : S; ~

node_modules/@types/express-serve-static-core/index.d.ts:101:33 - error TS1005: ';' expected.

101 RemoveTail<RemoveTail<S, /${string}>, -${string}>, ~

node_modules/@types/express-serve-static-core/index.d.ts:101:48 - error TS1005: ';' expected.

101 RemoveTail<RemoveTail<S, /${string}>, -${string}>, ~

node_modules/@types/express-serve-static-core/index.d.ts:102:8 - error TS1005: ';' expected.

102 .${string} ~

node_modules/@types/express-serve-static-core/index.d.ts:108:22 - error TS1005: ';' expected.

108 : Route extends ${string}(${string} ~

node_modules/@types/express-serve-static-core/index.d.ts:108:23 - error TS1005: ';' expected.

108 : Route extends ${string}(${string} ~

node_modules/@types/express-serve-static-core/index.d.ts:108:33 - error TS1005: ')' expected.

108 : Route extends ${string}(${string} ~

node_modules/@types/express-serve-static-core/index.d.ts:110:26 - error TS1005: ';' expected.

110 : Route extends ${string}:${infer Rest} ~

node_modules/@types/express-serve-static-core/index.d.ts:110:27 - error TS1005: ';' expected.

110 : Route extends ${string}:${infer Rest} ~

node_modules/@types/express-serve-static-core/index.d.ts:110:35 - error TS1128: Declaration or statement expected.

110 : Route extends ${string}:${infer Rest} ~

node_modules/@types/express-serve-static-core/index.d.ts:110:37 - error TS1005: ';' expected.

110 : Route extends ${string}:${infer Rest} ~

node_modules/@types/express-serve-static-core/index.d.ts:110:44 - error TS1005: ';' expected.

110 : Route extends ${string}:${infer Rest}


node_modules/@types/express-serve-static-core/index.d.ts:114:52 - error TS1005: ';' expected.

114                 : GetRouteParameter<Rest> extends `${infer ParamName}?`
                                                       ~

node_modules/@types/express-serve-static-core/index.d.ts:114:53 - error TS1005: ';' expected.

114                 : GetRouteParameter<Rest> extends `${infer ParamName}?`
                                                        ~

node_modules/@types/express-serve-static-core/index.d.ts:114:60 - error TS1005: ';' expected.

114                 : GetRouteParameter<Rest> extends `${infer ParamName}?`

node_modules/@types/express-serve-static-core/index.d.ts:114:70 - error TS1128: Declaration or statement expected.

114 : GetRouteParameter extends ${infer ParamName}? ~

node_modules/@types/express-serve-static-core/index.d.ts:118:28 - error TS1005: ';' expected.

118 (Rest extends ${GetRouteParameter<Rest>}${infer Next} ~

node_modules/@types/express-serve-static-core/index.d.ts:118:29 - error TS1005: ';' expected.

118 (Rest extends ${GetRouteParameter<Rest>}${infer Next} ~

node_modules/@types/express-serve-static-core/index.d.ts:118:53 - error TS1005: '(' expected.

118 (Rest extends ${GetRouteParameter<Rest>}${infer Next} ~

node_modules/@types/express-serve-static-core/index.d.ts:118:55 - error TS1005: ';' expected.

118 (Rest extends ${GetRouteParameter<Rest>}${infer Next} ~

node_modules/@types/express-serve-static-core/index.d.ts:118:62 - error TS1005: ';' expected.

118 (Rest extends ${GetRouteParameter<Rest>}${infer Next}


node_modules/@types/express-serve-static-core/index.d.ts:224:41 - error TS1005: ';' expected.

224      * Map the given param placeholder `name`(s) to the given callback(s).

node_modules/@types/express-serve-static-core/index.d.ts:233:31 - error TS1005: ';' expected.

233 * of the user. Once the next() function is invoked, just like middleware


node_modules/@types/express-serve-static-core/index.d.ts:259:62 - error TS1005: ';' expected.

259      * Special-cased "all" method, applying the given route `path`,

node_modules/@types/express-serve-static-core/index.d.ts:355:49 - error TS1005: ';' expected.

355 * @param P For most requests, this should be ParamsDictionary, but if you're


node_modules/@types/express-serve-static-core/index.d.ts:356:59 - error TS1005: ';' expected.

356  * using this in a route handler for a route that uses a `RegExp` or a wildcard

node_modules/@types/express-serve-static-core/index.d.ts:357:5 - error TS1005: ';' expected.

357 string path (e.g. `'/user/'), thenreq.params` will be an array, in


node_modules/@types/express-serve-static-core/index.d.ts:357:25 - error TS1005: ';' expected.

357  * `string` path (e.g. `'/user/*'`), then `req.params` will be an array, in

node_modules/@types/express-serve-static-core/index.d.ts:357:44 - error TS1005: ';' expected.

357 string path (e.g. `'/user/'), thenreq.params` will be an array, in


node_modules/@types/express-serve-static-core/index.d.ts:358:31 - error TS1005: ';' expected.

358  * which case you should use `ParamsArray` instead.

node_modules/@types/express-serve-static-core/index.d.ts:363:84 - error TS1005: ';' expected.

363 * app.get('/user/:id', (req, res) => res.send(req.params.id)); // implicitly ParamsDictionary


node_modules/@types/express-serve-static-core/index.d.ts:378:13 - error TS1005: ';' expected.

378      * The `Referrer` header field is special-cased,

node_modules/@types/express-serve-static-core/index.d.ts:379:14 - error TS1005: ';' expected.

379 * both Referrer and Referer are interchangeable.


node_modules/@types/express-serve-static-core/index.d.ts:379:29 - error TS1005: ';' expected.

379      * both `Referrer` and `Referer` are interchangeable.

node_modules/@types/express-serve-static-core/index.d.ts:392:20 - error TS1005: ';' expected.

392 * Aliased as req.header().


node_modules/@types/express-serve-static-core/index.d.ts:401:28 - error TS1005: ';' expected.

401      * Check if the given `type(s)` is acceptable, returning

node_modules/@types/express-serve-static-core/index.d.ts:402:45 - error TS1005: ';' expected.

402 * the best match when true, otherwise undefined, in which


node_modules/@types/express-serve-static-core/index.d.ts:405:13 - error TS1005: ';' expected.

405      * The `type` value may be a single mime type string

node_modules/@types/express-serve-static-core/index.d.ts:479:56 - error TS1005: ';' expected.

479 * Parse Range header field, capping to the given size.


node_modules/@types/express-serve-static-core/index.d.ts:483:48 - error TS1005: ';' expected.

483      * If the Range header field is not given `undefined` is returned.

node_modules/@types/express-serve-static-core/index.d.ts:502:35 - error TS1005: ';' expected.

502 * Return the value of param name when present or defaultValue.


node_modules/@types/express-serve-static-core/index.d.ts:502:58 - error TS1005: ';' expected.

502      * Return the value of param `name` when present or `defaultValue`.

node_modules/@types/express-serve-static-core/index.d.ts:508:36 - error TS1005: ';' expected.

508 * To utilize request bodies, req.body


node_modules/@types/express-serve-static-core/index.d.ts:510:13 - error TS1005: ';' expected.

510      * the `connect.bodyParser()` middleware.

node_modules/@types/express-serve-static-core/index.d.ts:516:53 - error TS1005: ';' expected.

516 * header field, and it contains the give mime type.


node_modules/@types/express-serve-static-core/index.d.ts:556:26 - error TS1005: ';' expected.

556      * "trust proxy" is `true` return

node_modules/@types/express-serve-static-core/index.d.ts:562:31 - error TS1005: ';' expected.

562 * When "trust proxy" is true, parse


node_modules/@types/express-serve-static-core/index.d.ts:585:24 - error TS1005: ';' expected.

585      * Short-hand for `url.parse(req.url).pathname`.

node_modules/@types/express-serve-static-core/index.d.ts:666:20 - error TS1005: ';' expected.

666 * Set status code.


node_modules/@types/express-serve-static-core/index.d.ts:671:46 - error TS1005: ';' expected.

671      * Set the response HTTP status code to `statusCode` and send its string representation as the response body.

node_modules/@types/express-serve-static-core/index.d.ts:684:46 - error TS1005: ';' expected.

684 * Set Link header field with the given links.


node_modules/@types/express-serve-static-core/index.d.ts:732:40 - error TS1005: ';' expected.

732      * Transfer the file at the given `path`.

node_modules/@types/express-serve-static-core/index.d.ts:735:22 - error TS1005: ';' expected.

735 * The callback fn(err) is invoked when the transfer is complete ~~

node_modules/@types/express-serve-static-core/index.d.ts:736:51 - error TS1005: ';' expected.

736 * or when an error occurs. Be sure to check res.headersSent


node_modules/@types/express-serve-static-core/index.d.ts:742:13 - error TS1005: ';' expected.

742      *   - `maxAge`   defaulting to 0 (can be string converted by `ms`)

node_modules/@types/express-serve-static-core/index.d.ts:742:68 - error TS1005: ';' expected.

742 * - maxAge defaulting to 0 (can be string converted by ms) ~~

node_modules/@types/express-serve-static-core/index.d.ts:743:13 - error TS1005: ';' expected.

743 * - root root directory for relative filenames


node_modules/@types/express-serve-static-core/index.d.ts:744:13 - error TS1005: ';' expected.

744      *   - `headers`  object of headers to serve with file

node_modules/@types/express-serve-static-core/index.d.ts:745:13 - error TS1005: ';' expected.

745 * - dotfiles serve dotfiles, defaulting to false; can be "allow" to send them


node_modules/@types/express-serve-static-core/index.d.ts:745:68 - error TS1005: ';' expected.

745      *   - `dotfiles` serve dotfiles, defaulting to false; can be `"allow"` to send them

node_modules/@types/express-serve-static-core/index.d.ts:747:43 - error TS1005: ';' expected.

747 * Other options are passed along to send.


node_modules/@types/express-serve-static-core/index.d.ts:751:48 - error TS1005: ';' expected.

751      *  The following example illustrates how `res.sendFile()` may

node_modules/@types/express-serve-static-core/index.d.ts:752:44 - error TS1005: ';' expected.

752 * be used as an alternative for the static() middleware for


node_modules/@types/express-serve-static-core/index.d.ts:753:47 - error TS1005: ';' expected.

753      *  dynamic situations. The code backing `res.sendFile()` is actually

node_modules/@types/express-serve-static-core/index.d.ts:792:40 - error TS1005: ';' expected.

792 * Transfer the file at the given path as an attachment.


node_modules/@types/express-serve-static-core/index.d.ts:794:54 - error TS1005: ';' expected.

794      * Optionally providing an alternate attachment `filename`,

node_modules/@types/express-serve-static-core/index.d.ts:795:31 - error TS1005: ';' expected.

795 * and optional callback fn(err). The callback is invoked ~~

node_modules/@types/express-serve-static-core/index.d.ts:797:35 - error TS1005: ';' expected.

797 * ocurred. Be sure to check res.headersSent if you plan to respond.


node_modules/@types/express-serve-static-core/index.d.ts:802:26 - error TS1005: ';' expected.

802      * This method uses `res.sendfile()`.

node_modules/@types/express-serve-static-core/index.d.ts:809:49 - error TS1005: ';' expected.

809 * Set Content-Type response header with type through mime.lookup()


node_modules/@types/express-serve-static-core/index.d.ts:809:64 - error TS1005: ';' expected.

809      * Set _Content-Type_ response header with `type` through `mime.lookup()`

node_modules/@types/express-serve-static-core/index.d.ts:810:66 - error TS1005: ';' expected.

810 * when it does not contain "/", or set the Content-Type to type otherwise.


node_modules/@types/express-serve-static-core/index.d.ts:823:49 - error TS1005: ';' expected.

823      * Set _Content-Type_ response header with `type` through `mime.lookup()`

node_modules/@types/express-serve-static-core/index.d.ts:823:64 - error TS1005: ';' expected.

823 * Set Content-Type response header with type through mime.lookup()


node_modules/@types/express-serve-static-core/index.d.ts:824:66 - error TS1005: ';' expected.

824      * when it does not contain "/", or set the Content-Type to `type` otherwise.

node_modules/@types/express-serve-static-core/index.d.ts:837:52 - error TS1005: ';' expected.

837 * Respond to the Acceptable formats using an obj


node_modules/@types/express-serve-static-core/index.d.ts:840:26 - error TS1005: ';' expected.

840      * This method uses `req.accepted`, an array of

node_modules/@types/express-serve-static-core/index.d.ts:848:54 - error TS1005: ';' expected.

848 * you may alter this within the callback using res.type()


node_modules/@types/express-serve-static-core/index.d.ts:849:12 - error TS1005: ';' expected.

849      * or `res.set('Content-Type', ...)`.

node_modules/@types/express-serve-static-core/index.d.ts:849:39 - error TS1109: Expression expected.

849 * or res.set('Content-Type', ...). ~

node_modules/@types/express-serve-static-core/index.d.ts:882:38 - error TS1005: ';' expected.

882 * By default Express passes an Error


node_modules/@types/express-serve-static-core/index.d.ts:883:36 - error TS1005: ';' expected.

883      * with a `.status` of 406 to `next(err)`

node_modules/@types/express-serve-static-core/index.d.ts:891:72 - error TS1005: ';' expected.

891 * Set Content-Disposition header to attachment with optional filename.


node_modules/@types/express-serve-static-core/index.d.ts:896:20 - error TS1005: ';' expected.

896      * Set header `field` to `val`, or pass

node_modules/@types/express-serve-static-core/index.d.ts:896:31 - error TS1005: ';' expected.

896 * Set header field to val, or pass


node_modules/@types/express-serve-static-core/index.d.ts:905:20 - error TS1005: ';' expected.

905      * Aliased as `res.header()`.

node_modules/@types/express-serve-static-core/index.d.ts:916:31 - error TS1005: ';' expected.

916 /* Get value for header field. /


node_modules/@types/express-serve-static-core/index.d.ts:919:23 - error TS1005: ';' expected.

919     /** Clear cookie `name`. */

node_modules/@types/express-serve-static-core/index.d.ts:923:20 - error TS1005: ';' expected.

923 * Set cookie name to val, with the given options.


node_modules/@types/express-serve-static-core/index.d.ts:923:30 - error TS1005: ';' expected.

923      * Set cookie `name` to `val`, with the given `options`.

node_modules/@types/express-serve-static-core/index.d.ts:923:52 - error TS1005: ';' expected.

923 * Set cookie name to val, with the given options.


node_modules/@types/express-serve-static-core/index.d.ts:927:14 - error TS1005: ';' expected.

927      *    - `maxAge`   max-age in milliseconds, converted to `expires`

node_modules/@types/express-serve-static-core/index.d.ts:927:63 - error TS1005: ';' expected.

927 * - maxAge max-age in milliseconds, converted to expires


node_modules/@types/express-serve-static-core/index.d.ts:928:14 - error TS1005: ';' expected.

928      *    - `signed`   sign the cookie

node_modules/@types/express-serve-static-core/index.d.ts:929:14 - error TS1005: ';' expected.

929 * - path defaults to "/"


node_modules/@types/express-serve-static-core/index.d.ts:944:36 - error TS1005: ';' expected.

944      * Set the location header to `url`.

node_modules/@types/express-serve-static-core/index.d.ts:946:19 - error TS1005: ';' expected.

946 * The given url can also be the name of a mapped url, for


node_modules/@types/express-serve-static-core/index.d.ts:958:46 - error TS1005: ';' expected.

958      *   When an application is mounted and `res.location()`

node_modules/@types/express-serve-static-core/index.d.ts:972:31 - error TS1005: ';' expected.

972 * Redirect to the given url with optional response status


node_modules/@types/express-serve-static-core/index.d.ts:972:60 - error TS1005: ';' expected.

972      * Redirect to the given `url` with optional response `status`

node_modules/@types/express-serve-static-core/index.d.ts:975:23 - error TS1005: ';' expected.

975 * The resulting url is determined by res.location(), so


node_modules/@types/express-serve-static-core/index.d.ts:975:46 - error TS1005: ';' expected.

975      * The resulting `url` is determined by `res.location()`, so

node_modules/@types/express-serve-static-core/index.d.ts:977:9 - error TS1005: ';' expected.

977 * "back" etc.


node_modules/@types/express-serve-static-core/index.d.ts:994:16 - error TS1005: ';' expected.

994      * Render `view` with the given `options` and optional callback `fn`.

node_modules/@types/express-serve-static-core/index.d.ts:994:38 - error TS1005: ';' expected.

994 * Render view with the given options and optional callback fn.


node_modules/@types/express-serve-static-core/index.d.ts:994:70 - error TS1005: ';' expected.

994      * Render `view` with the given `options` and optional callback `fn`.
                                                                         ~~

node_modules/@types/express-serve-static-core/index.d.ts:1000:12 - error TS1005: ';' expected.

1000      *  - `cache`     boolean hinting to the engine it should cache

node_modules/@types/express-serve-static-core/index.d.ts:1001:12 - error TS1005: ';' expected.

1001 * - filename filename of the view being rendered


node_modules/@types/express-serve-static-core/index.d.ts:1071:53 - error TS1005: ';' expected.

1071      * Register the given template engine callback `fn`
                                                         ~~

node_modules/@types/express-serve-static-core/index.d.ts:1072:12 - error TS1005: ';' expected.

1072      * as `ext`.

node_modules/@types/express-serve-static-core/index.d.ts:1074:25 - error TS1005: ';' expected.

1074 * By default will require() the engine based on the


node_modules/@types/express-serve-static-core/index.d.ts:1089:52 - error TS1005: ';' expected.

1089      * though note that it aliases this method as `ejs.__express` internally

node_modules/@types/express-serve-static-core/index.d.ts:1104:16 - error TS1005: ';' expected.

1104 * Assign setting to val, or return setting's value.


node_modules/@types/express-serve-static-core/index.d.ts:1104:29 - error TS1005: ';' expected.

1104      * Assign `setting` to `val`, or return `setting`'s value.

node_modules/@types/express-serve-static-core/index.d.ts:1104:46 - error TS1005: ';' expected.

1104 * Assign setting to val, or return setting's value.


node_modules/@types/express-serve-static-core/index.d.ts:1140:18 - error TS1005: ';' expected.

1140      * Check if `setting` is enabled (truthy).

node_modules/@types/express-serve-static-core/index.d.ts:1152:18 - error TS1005: ';' expected.

1152 * Check if setting is disabled.


node_modules/@types/express-serve-static-core/index.d.ts:1163:17 - error TS1005: ';' expected.

1163     /** Enable `setting`. */

node_modules/@types/express-serve-static-core/index.d.ts:1166:18 - error TS1005: ';' expected.

1166 /* Disable setting. /


node_modules/@types/express-serve-static-core/index.d.ts:1170:31 - error TS1005: ';' expected.

1170      * Render the given view `name` name with `options`

node_modules/@types/express-serve-static-core/index.d.ts:1170:48 - error TS1005: ';' expected.

1170 * Render the given view name name with options


node_modules/@types/express-serve-static-core/index.d.ts:1186:16 - error TS1005: ';' expected.

1186      * A node `http.Server` is returned, with this

node_modules/@types/express-serve-static-core/index.d.ts:1187:33 - error TS1005: ';' expected.

1187 * application (which is a Function) as its



node_modules/@types/express-serve-static-core/index.d.ts:1255:1 - error TS1160: Unterminated template literal.

1255 

Found 127 errors.
jakeharriss commented 1 year ago

The QR code problem has been resolved now, I can see the QR code to scan, but it does not establish the connection

jakeharriss commented 1 year ago
image
jakeharriss commented 1 year ago

as my understanding this should looks like this when connected image

jakeharriss commented 1 year ago

This is the warning in console image

jakeharriss commented 1 year ago

image

megaatacadao commented 1 year ago

I am having the same issue. anybody found a solution yet! estou com mesmo problema, alguém consegue resolver esse erro? Thanks

tonycesar commented 1 year ago

**initially we had all this errors when installed in the public server with ubuntu 22, but all errors were completely fixed****

node_modules/@types/express-serve-static-core/index.d.ts:745:13 - error TS1005: ';' expected.

745 * - dotfiles serve dotfiles, defaulting to false; can be "allow" to send them ~~~~

node_modules/@types/express-serve-static-core/index.d.ts:745:68 - error TS1005: ';' expected.

745 * - dotfiles serve dotfiles, defaulting to false; can be "allow" to send them ~~~

node_modules/@types/express-serve-static-core/index.d.ts:747:43 - error TS1005: ';' expected.

747 * Other options are passed along to send. ~~~~

node_modules/@types/express-serve-static-core/index.d.ts:751:48 - error TS1005: ';' expected.

751 * The following example illustrates how res.sendFile() may ~~~

node_modules/@types/express-serve-static-core/index.d.ts:752:44 - error TS1005: ';' expected.

752 * be used as an alternative for the static() middleware for ~~

node_modules/@types/express-serve-static-core/index.d.ts:753:47 - error TS1005: ';' expected.

753 * dynamic situations. The code backing res.sendFile() is actually ~~~

node_modules/@types/express-serve-static-core/index.d.ts:792:40 - error TS1005: ';' expected.

792 * Transfer the file at the given path as an attachment. ~~~~

node_modules/@types/express-serve-static-core/index.d.ts:794:54 - error TS1005: ';' expected.

794 * Optionally providing an alternate attachment filename, ~~~~

node_modules/@types/express-serve-static-core/index.d.ts:795:31 - error TS1005: ';' expected.

795 * and optional callback fn(err). The callback is invoked ~~

node_modules/@types/express-serve-static-core/index.d.ts:797:35 - error TS1005: ';' expected.

797 * ocurred. Be sure to check res.headersSent if you plan to respond. ~~~

node_modules/@types/express-serve-static-core/index.d.ts:802:26 - error TS1005: ';' expected.

802 * This method uses res.sendfile(). ~~~

node_modules/@types/express-serve-static-core/index.d.ts:809:49 - error TS1005: ';' expected.

809 * Set Content-Type response header with type through mime.lookup() ~~~~

node_modules/@types/express-serve-static-core/index.d.ts:809:64 - error TS1005: ';' expected.

809 * Set Content-Type response header with type through mime.lookup() ~~~~

node_modules/@types/express-serve-static-core/index.d.ts:810:66 - error TS1005: ';' expected.

810 * when it does not contain "/", or set the Content-Type to type otherwise. ~~~~

node_modules/@types/express-serve-static-core/index.d.ts:823:49 - error TS1005: ';' expected.

823 * Set Content-Type response header with type through mime.lookup() ~~~~

node_modules/@types/express-serve-static-core/index.d.ts:823:64 - error TS1005: ';' expected.

823 * Set Content-Type response header with type through mime.lookup() ~~~~

node_modules/@types/express-serve-static-core/index.d.ts:824:66 - error TS1005: ';' expected.

824 * when it does not contain "/", or set the Content-Type to type otherwise. ~~~~

node_modules/@types/express-serve-static-core/index.d.ts:837:52 - error TS1005: ';' expected.

837 * Respond to the Acceptable formats using an obj ~~~

node_modules/@types/express-serve-static-core/index.d.ts:840:26 - error TS1005: ';' expected.

840 * This method uses req.accepted, an array of ~~~

node_modules/@types/express-serve-static-core/index.d.ts:848:54 - error TS1005: ';' expected.

848 * you may alter this within the callback using res.type() ~~~

node_modules/@types/express-serve-static-core/index.d.ts:849:12 - error TS1005: ';' expected.

849 * or res.set('Content-Type', ...). ~~~

node_modules/@types/express-serve-static-core/index.d.ts:849:39 - error TS1109: Expression expected.

849 * or res.set('Content-Type', ...). ~

node_modules/@types/express-serve-static-core/index.d.ts:882:38 - error TS1005: ';' expected.

882 * By default Express passes an Error ~

node_modules/@types/express-serve-static-core/index.d.ts:883:36 - error TS1005: ';' expected.

883 * with a .status of 406 to next(err) ~~~~

node_modules/@types/express-serve-static-core/index.d.ts:891:72 - error TS1005: ';' expected.

891 * Set Content-Disposition header to attachment with optional filename. ~~~~

node_modules/@types/express-serve-static-core/index.d.ts:896:20 - error TS1005: ';' expected.

896 * Set header field to val, or pass ~

node_modules/@types/express-serve-static-core/index.d.ts:896:31 - error TS1005: ';' expected.

896 * Set header field to val, or pass ~~~

node_modules/@types/express-serve-static-core/index.d.ts:905:20 - error TS1005: ';' expected.

905 * Aliased as res.header(). ~~~

node_modules/@types/express-serve-static-core/index.d.ts:916:31 - error TS1005: ';' expected.

916 /* Get value for header field. / ~

node_modules/@types/express-serve-static-core/index.d.ts:919:23 - error TS1005: ';' expected.

919 /* Clear cookie name. / ~~~~

node_modules/@types/express-serve-static-core/index.d.ts:923:20 - error TS1005: ';' expected.

923 * Set cookie name to val, with the given options. ~~~~

node_modules/@types/express-serve-static-core/index.d.ts:923:30 - error TS1005: ';' expected.

923 * Set cookie name to val, with the given options. ~~~

node_modules/@types/express-serve-static-core/index.d.ts:923:52 - error TS1005: ';' expected.

923 * Set cookie name to val, with the given options. ~~~

node_modules/@types/express-serve-static-core/index.d.ts:927:14 - error TS1005: ';' expected.

927 * - maxAge max-age in milliseconds, converted to expires ~~

node_modules/@types/express-serve-static-core/index.d.ts:927:63 - error TS1005: ';' expected.

927 * - maxAge max-age in milliseconds, converted to expires ~~~

node_modules/@types/express-serve-static-core/index.d.ts:928:14 - error TS1005: ';' expected.

928 * - signed sign the cookie ~~

node_modules/@types/express-serve-static-core/index.d.ts:929:14 - error TS1005: ';' expected.

929 * - path defaults to "/" ~~~~

node_modules/@types/express-serve-static-core/index.d.ts:944:36 - error TS1005: ';' expected.

944 * Set the location header to url. ~~~

node_modules/@types/express-serve-static-core/index.d.ts:946:19 - error TS1005: ';' expected.

946 * The given url can also be the name of a mapped url, for ~~~

node_modules/@types/express-serve-static-core/index.d.ts:958:46 - error TS1005: ';' expected.

958 * When an application is mounted and res.location() ~~~

node_modules/@types/express-serve-static-core/index.d.ts:972:31 - error TS1005: ';' expected.

972 * Redirect to the given url with optional response status ~~~

node_modules/@types/express-serve-static-core/index.d.ts:972:60 - error TS1005: ';' expected.

972 * Redirect to the given url with optional response status ~~

node_modules/@types/express-serve-static-core/index.d.ts:975:23 - error TS1005: ';' expected.

975 * The resulting url is determined by res.location(), so ~~~

node_modules/@types/express-serve-static-core/index.d.ts:975:46 - error TS1005: ';' expected.

975 * The resulting url is determined by res.location(), so ~~~

node_modules/@types/express-serve-static-core/index.d.ts:977:9 - error TS1005: ';' expected.

977 * "back" etc. ~~

node_modules/@types/express-serve-static-core/index.d.ts:994:16 - error TS1005: ';' expected.

994 * Render view with the given options and optional callback fn. ~~~~

node_modules/@types/express-serve-static-core/index.d.ts:994:38 - error TS1005: ';' expected.

994 * Render view with the given options and optional callback fn. ~~~

node_modules/@types/express-serve-static-core/index.d.ts:994:70 - error TS1005: ';' expected.

994 * Render view with the given options and optional callback fn. ~~

node_modules/@types/express-serve-static-core/index.d.ts:1000:12 - error TS1005: ';' expected.

1000 * - cache boolean hinting to the engine it should cache ~

node_modules/@types/express-serve-static-core/index.d.ts:1001:12 - error TS1005: ';' expected.

1001 * - filename filename of the view being rendered ~~~~

node_modules/@types/express-serve-static-core/index.d.ts:1071:53 - error TS1005: ';' expected.

1071 * Register the given template engine callback fn ~~

node_modules/@types/express-serve-static-core/index.d.ts:1072:12 - error TS1005: ';' expected.

1072 * as ext. ~~~

node_modules/@types/express-serve-static-core/index.d.ts:1074:25 - error TS1005: ';' expected.

1074 * By default will require() the engine based on the ~~~

node_modules/@types/express-serve-static-core/index.d.ts:1089:52 - error TS1005: ';' expected.

1089 * though note that it aliases this method as ejs.__express internally ~~~

node_modules/@types/express-serve-static-core/index.d.ts:1104:16 - error TS1005: ';' expected.

1104 * Assign setting to val, or return setting's value. ~~~

node_modules/@types/express-serve-static-core/index.d.ts:1104:29 - error TS1005: ';' expected.

1104 * Assign setting to val, or return setting's value. ~~~

node_modules/@types/express-serve-static-core/index.d.ts:1104:46 - error TS1005: ';' expected.

1104 * Assign setting to val, or return setting's value. ~~~

node_modules/@types/express-serve-static-core/index.d.ts:1140:18 - error TS1005: ';' expected.

1140 * Check if setting is enabled (truthy). ~~~

node_modules/@types/express-serve-static-core/index.d.ts:1152:18 - error TS1005: ';' expected.

1152 * Check if setting is disabled. ~~~

node_modules/@types/express-serve-static-core/index.d.ts:1163:17 - error TS1005: ';' expected.

1163 /* Enable setting. / ~~~

node_modules/@types/express-serve-static-core/index.d.ts:1166:18 - error TS1005: ';' expected.

1166 /* Disable setting. / ~~~

node_modules/@types/express-serve-static-core/index.d.ts:1170:31 - error TS1005: ';' expected.

1170 * Render the given view name name with options ~~~~

node_modules/@types/express-serve-static-core/index.d.ts:1170:48 - error TS1005: ';' expected.

1170 * Render the given view name name with options ~~~

node_modules/@types/express-serve-static-core/index.d.ts:1186:16 - error TS1005: ';' expected.

1186 * A node http.Server is returned, with this ~~~~

node_modules/@types/express-serve-static-core/index.d.ts:1187:33 - error TS1005: ';' expected.

1187 * application (which is a Function) as its ~~~~

node_modules/@types/express-serve-static-core/index.d.ts:1255:1 - error TS1160: Unterminated template literal.

1255

Found 127 errors.

ahsan@ahsan-XPS-13-7390:/media/ahsan/D1/workspace/whaticket/backend$ tsc --version Command 'tsc' not found, but can be installed with: sudo apt install node-typescript ahsan@ahsan-XPS-13-7390:/media/ahsan/D1/workspace/whaticket/backend$ npm install -g typescript@4.0.3 npm ERR! code EACCES npm ERR! syscall mkdir npm ERR! path /usr/local/lib/node_modules npm ERR! errno -13 npm ERR! Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules' npm ERR! [Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules'] { npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'mkdir', npm ERR! path: '/usr/local/lib/node_modules' npm ERR! } npm ERR! npm ERR! The operation was rejected by your operating system. npm ERR! It is likely you do not have the permissions to access this file as the current user npm ERR! npm ERR! If you believe this might be a permissions issue, please double-check the npm ERR! permissions of the file and its containing directories, or try running npm ERR! the command again as root/Administrator.

npm ERR! A complete log of this run can be found in: npm ERR! /home/ahsan/.npm/_logs/2022-10-12T02_24_24_270Z-debug-0.log ahsan@ahsan-XPS-13-7390:/media/ahsan/D1/workspace/whaticket/backend$ sudo npm install -g typescript@4.0.3 [sudo] password for ahsan:

added 1 package, and audited 2 packages in 3s

found 0 vulnerabilities ahsan@ahsan-XPS-13-7390:/media/ahsan/D1/workspace/whaticket/backend$ tsc --version Version 4.0.3 ahsan@ahsan-XPS-13-7390:/media/ahsan/D1/workspace/whaticket/backend$ npm run build

backend@1.0.0 build tsc

node_modules/@types/express-serve-static-core/index.d.ts:99:68 - error TS1110: Type expected.

99 type RemoveTail<S extends string, Tail extends string> = S extends ${infer P}${Tail} ? P : S; ~~~

node_modules/@types/express-serve-static-core/index.d.ts:99:77 - error TS1005: '}' expected.

99 type RemoveTail<S extends string, Tail extends string> = S extends ${infer P}${Tail} ? P : S; ~

node_modules/@types/express-serve-static-core/index.d.ts:99:78 - error TS1128: Declaration or statement expected.

99 type RemoveTail<S extends string, Tail extends string> = S extends ${infer P}${Tail} ? P : S; ~

node_modules/@types/express-serve-static-core/index.d.ts:99:80 - error TS1005: ';' expected.

99 type RemoveTail<S extends string, Tail extends string> = S extends ${infer P}${Tail} ? P : S; ~

node_modules/@types/express-serve-static-core/index.d.ts:101:33 - error TS1005: ';' expected.

101 RemoveTail<RemoveTail<S, /${string}>, -${string}>, ~

node_modules/@types/express-serve-static-core/index.d.ts:101:48 - error TS1005: ';' expected.

101 RemoveTail<RemoveTail<S, /${string}>, -${string}>, ~

node_modules/@types/express-serve-static-core/index.d.ts:102:8 - error TS1005: ';' expected.

102 .${string} ~

node_modules/@types/express-serve-static-core/index.d.ts:108:22 - error TS1005: ';' expected.

108 : Route extends ${string}(${string} ~

node_modules/@types/express-serve-static-core/index.d.ts:108:23 - error TS1005: ';' expected.

108 : Route extends ${string}(${string} ~

node_modules/@types/express-serve-static-core/index.d.ts:108:33 - error TS1005: ')' expected.

108 : Route extends ${string}(${string} ~

node_modules/@types/express-serve-static-core/index.d.ts:110:26 - error TS1005: ';' expected.

110 : Route extends ${string}:${infer Rest} ~

node_modules/@types/express-serve-static-core/index.d.ts:110:27 - error TS1005: ';' expected.

110 : Route extends ${string}:${infer Rest} ~

node_modules/@types/express-serve-static-core/index.d.ts:110:35 - error TS1128: Declaration or statement expected.

110 : Route extends ${string}:${infer Rest} ~

node_modules/@types/express-serve-static-core/index.d.ts:110:37 - error TS1005: ';' expected.

110 : Route extends ${string}:${infer Rest} ~

node_modules/@types/express-serve-static-core/index.d.ts:110:44 - error TS1005: ';' expected.

110 : Route extends ${string}:${infer Rest} ~~~~

node_modules/@types/express-serve-static-core/index.d.ts:114:52 - error TS1005: ';' expected.

114 : GetRouteParameter extends ${infer ParamName}? ~

node_modules/@types/express-serve-static-core/index.d.ts:114:53 - error TS1005: ';' expected.

114 : GetRouteParameter extends ${infer ParamName}? ~

node_modules/@types/express-serve-static-core/index.d.ts:114:60 - error TS1005: ';' expected.

114 : GetRouteParameter extends ${infer ParamName}? ~~~~~

node_modules/@types/express-serve-static-core/index.d.ts:114:70 - error TS1128: Declaration or statement expected.

114 : GetRouteParameter extends ${infer ParamName}? ~

node_modules/@types/express-serve-static-core/index.d.ts:118:28 - error TS1005: ';' expected.

118 (Rest extends ${GetRouteParameter<Rest>}${infer Next} ~

node_modules/@types/express-serve-static-core/index.d.ts:118:29 - error TS1005: ';' expected.

118 (Rest extends ${GetRouteParameter<Rest>}${infer Next} ~

node_modules/@types/express-serve-static-core/index.d.ts:118:53 - error TS1005: '(' expected.

118 (Rest extends ${GetRouteParameter<Rest>}${infer Next} ~

node_modules/@types/express-serve-static-core/index.d.ts:118:55 - error TS1005: ';' expected.

118 (Rest extends ${GetRouteParameter<Rest>}${infer Next} ~

node_modules/@types/express-serve-static-core/index.d.ts:118:62 - error TS1005: ';' expected.

118 (Rest extends ${GetRouteParameter<Rest>}${infer Next} ~~~~

node_modules/@types/express-serve-static-core/index.d.ts:224:41 - error TS1005: ';' expected.

224 * Map the given param placeholder name(s) to the given callback(s). ~~~~

node_modules/@types/express-serve-static-core/index.d.ts:233:31 - error TS1005: ';' expected.

233 * of the user. Once the next() function is invoked, just like middleware ~~~~

node_modules/@types/express-serve-static-core/index.d.ts:259:62 - error TS1005: ';' expected.

259 * Special-cased "all" method, applying the given route path, ~~~~

node_modules/@types/express-serve-static-core/index.d.ts:355:49 - error TS1005: ';' expected.

355 * @param P For most requests, this should be ParamsDictionary, but if you're ~~~~

node_modules/@types/express-serve-static-core/index.d.ts:356:59 - error TS1005: ';' expected.

356 * using this in a route handler for a route that uses a RegExp or a wildcard ~~

node_modules/@types/express-serve-static-core/index.d.ts:357:5 - error TS1005: ';' expected.

357 string path (e.g. `'/user/'), thenreq.params` will be an array, in ~~

node_modules/@types/express-serve-static-core/index.d.ts:357:25 - error TS1005: ';' expected.

357 string path (e.g. `'/user/'), thenreq.params` will be an array, in ~~~~~

node_modules/@types/express-serve-static-core/index.d.ts:357:44 - error TS1005: ';' expected.

357 string path (e.g. `'/user/'), thenreq.params` will be an array, in ~~~

node_modules/@types/express-serve-static-core/index.d.ts:358:31 - error TS1005: ';' expected.

358 * which case you should use ParamsArray instead. ~~~

node_modules/@types/express-serve-static-core/index.d.ts:363:84 - error TS1005: ';' expected.

363 * app.get('/user/:id', (req, res) => res.send(req.params.id)); // implicitly ParamsDictionary ~~~~

node_modules/@types/express-serve-static-core/index.d.ts:378:13 - error TS1005: ';' expected.

378 * The Referrer header field is special-cased, ~~~~

node_modules/@types/express-serve-static-core/index.d.ts:379:14 - error TS1005: ';' expected.

379 * both Referrer and Referer are interchangeable. ~~~~

node_modules/@types/express-serve-static-core/index.d.ts:379:29 - error TS1005: ';' expected.

379 * both Referrer and Referer are interchangeable. ~~~

node_modules/@types/express-serve-static-core/index.d.ts:392:20 - error TS1005: ';' expected.

392 * Aliased as req.header(). ~~~

node_modules/@types/express-serve-static-core/index.d.ts:401:28 - error TS1005: ';' expected.

401 * Check if the given type(s) is acceptable, returning ~~~~

node_modules/@types/express-serve-static-core/index.d.ts:402:45 - error TS1005: ';' expected.

402 * the best match when true, otherwise undefined, in which ~~~~~

node_modules/@types/express-serve-static-core/index.d.ts:405:13 - error TS1005: ';' expected.

405 * The type value may be a single mime type string ~~~~

node_modules/@types/express-serve-static-core/index.d.ts:479:56 - error TS1005: ';' expected.

479 * Parse Range header field, capping to the given size. ~~~~

node_modules/@types/express-serve-static-core/index.d.ts:483:48 - error TS1005: ';' expected.

483 * If the Range header field is not given undefined is returned. ~~~~~

node_modules/@types/express-serve-static-core/index.d.ts:502:35 - error TS1005: ';' expected.

502 * Return the value of param name when present or defaultValue. ~~~~

node_modules/@types/express-serve-static-core/index.d.ts:502:58 - error TS1005: ';' expected.

502 * Return the value of param name when present or defaultValue. ~~~~

node_modules/@types/express-serve-static-core/index.d.ts:508:36 - error TS1005: ';' expected.

508 * To utilize request bodies, req.body ~~~

node_modules/@types/express-serve-static-core/index.d.ts:510:13 - error TS1005: ';' expected.

510 * the connect.bodyParser() middleware. ~~~

node_modules/@types/express-serve-static-core/index.d.ts:516:53 - error TS1005: ';' expected.

516 * header field, and it contains the give mime type. ~~~~

node_modules/@types/express-serve-static-core/index.d.ts:556:26 - error TS1005: ';' expected.

556 * "trust proxy" is true return ~~~~

node_modules/@types/express-serve-static-core/index.d.ts:562:31 - error TS1005: ';' expected.

562 * When "trust proxy" is true, parse ~~~~

node_modules/@types/express-serve-static-core/index.d.ts:585:24 - error TS1005: ';' expected.

585 * Short-hand for url.parse(req.url).pathname. ~~~

node_modules/@types/express-serve-static-core/index.d.ts:666:20 - error TS1005: ';' expected.

666 * Set status code. ~~~~

node_modules/@types/express-serve-static-core/index.d.ts:671:46 - error TS1005: ';' expected.

671 * Set the response HTTP status code to statusCode and send its string representation as the response body. ~~

node_modules/@types/express-serve-static-core/index.d.ts:684:46 - error TS1005: ';' expected.

684 * Set Link header field with the given links. ~

node_modules/@types/express-serve-static-core/index.d.ts:732:40 - error TS1005: ';' expected.

732 * Transfer the file at the given path. ~~~~

node_modules/@types/express-serve-static-core/index.d.ts:735:22 - error TS1005: ';' expected.

735 * The callback fn(err) is invoked when the transfer is complete ~~

node_modules/@types/express-serve-static-core/index.d.ts:736:51 - error TS1005: ';' expected.

736 * or when an error occurs. Be sure to check res.headersSent ~~~

node_modules/@types/express-serve-static-core/index.d.ts:742:13 - error TS1005: ';' expected.

742 * - maxAge defaulting to 0 (can be string converted by ms) ~~

node_modules/@types/express-serve-static-core/index.d.ts:742:68 - error TS1005: ';' expected.

742 * - maxAge defaulting to 0 (can be string converted by ms) ~~

node_modules/@types/express-serve-static-core/index.d.ts:743:13 - error TS1005: ';' expected.

743 * - root root directory for relative filenames ~~~~

node_modules/@types/express-serve-static-core/index.d.ts:744:13 - error TS1005: ';' expected.

744 * - headers object of headers to serve with file ~~~

node_modules/@types/express-serve-static-core/index.d.ts:745:13 - error TS1005: ';' expected.

745 * - dotfiles serve dotfiles, defaulting to false; can be "allow" to send them ~~~~

node_modules/@types/express-serve-static-core/index.d.ts:745:68 - error TS1005: ';' expected.

745 * - dotfiles serve dotfiles, defaulting to false; can be "allow" to send them ~~~

node_modules/@types/express-serve-static-core/index.d.ts:747:43 - error TS1005: ';' expected.

747 * Other options are passed along to send. ~~~~

node_modules/@types/express-serve-static-core/index.d.ts:751:48 - error TS1005: ';' expected.

751 * The following example illustrates how res.sendFile() may ~~~

node_modules/@types/express-serve-static-core/index.d.ts:752:44 - error TS1005: ';' expected.

752 * be used as an alternative for the static() middleware for ~~

node_modules/@types/express-serve-static-core/index.d.ts:753:47 - error TS1005: ';' expected.

753 * dynamic situations. The code backing res.sendFile() is actually ~~~

node_modules/@types/express-serve-static-core/index.d.ts:792:40 - error TS1005: ';' expected.

792 * Transfer the file at the given path as an attachment. ~~~~

node_modules/@types/express-serve-static-core/index.d.ts:794:54 - error TS1005: ';' expected.

794 * Optionally providing an alternate attachment filename, ~~~~

node_modules/@types/express-serve-static-core/index.d.ts:795:31 - error TS1005: ';' expected.

795 * and optional callback fn(err). The callback is invoked ~~

node_modules/@types/express-serve-static-core/index.d.ts:797:35 - error TS1005: ';' expected.

797 * ocurred. Be sure to check res.headersSent if you plan to respond. ~~~

node_modules/@types/express-serve-static-core/index.d.ts:802:26 - error TS1005: ';' expected.

802 * This method uses res.sendfile(). ~~~

node_modules/@types/express-serve-static-core/index.d.ts:809:49 - error TS1005: ';' expected.

809 * Set Content-Type response header with type through mime.lookup() ~~~~

node_modules/@types/express-serve-static-core/index.d.ts:809:64 - error TS1005: ';' expected.

809 * Set Content-Type response header with type through mime.lookup() ~~~~

node_modules/@types/express-serve-static-core/index.d.ts:810:66 - error TS1005: ';' expected.

810 * when it does not contain "/", or set the Content-Type to type otherwise. ~~~~

node_modules/@types/express-serve-static-core/index.d.ts:823:49 - error TS1005: ';' expected.

823 * Set Content-Type response header with type through mime.lookup() ~~~~

node_modules/@types/express-serve-static-core/index.d.ts:823:64 - error TS1005: ';' expected.

823 * Set Content-Type response header with type through mime.lookup() ~~~~

node_modules/@types/express-serve-static-core/index.d.ts:824:66 - error TS1005: ';' expected.

824 * when it does not contain "/", or set the Content-Type to type otherwise. ~~~~

node_modules/@types/express-serve-static-core/index.d.ts:837:52 - error TS1005: ';' expected.

837 * Respond to the Acceptable formats using an obj ~~~

node_modules/@types/express-serve-static-core/index.d.ts:840:26 - error TS1005: ';' expected.

840 * This method uses req.accepted, an array of ~~~

node_modules/@types/express-serve-static-core/index.d.ts:848:54 - error TS1005: ';' expected.

848 * you may alter this within the callback using res.type() ~~~

node_modules/@types/express-serve-static-core/index.d.ts:849:12 - error TS1005: ';' expected.

849 * or res.set('Content-Type', ...). ~~~

node_modules/@types/express-serve-static-core/index.d.ts:849:39 - error TS1109: Expression expected.

849 * or res.set('Content-Type', ...). ~

node_modules/@types/express-serve-static-core/index.d.ts:882:38 - error TS1005: ';' expected.

882 * By default Express passes an Error ~

node_modules/@types/express-serve-static-core/index.d.ts:883:36 - error TS1005: ';' expected.

883 * with a .status of 406 to next(err) ~~~~

node_modules/@types/express-serve-static-core/index.d.ts:891:72 - error TS1005: ';' expected.

891 * Set Content-Disposition header to attachment with optional filename. ~~~~

node_modules/@types/express-serve-static-core/index.d.ts:896:20 - error TS1005: ';' expected.

896 * Set header field to val, or pass ~

node_modules/@types/express-serve-static-core/index.d.ts:896:31 - error TS1005: ';' expected.

896 * Set header field to val, or pass ~~~

node_modules/@types/express-serve-static-core/index.d.ts:905:20 - error TS1005: ';' expected.

905 * Aliased as res.header(). ~~~

node_modules/@types/express-serve-static-core/index.d.ts:916:31 - error TS1005: ';' expected.

916 /* Get value for header field. / ~

node_modules/@types/express-serve-static-core/index.d.ts:919:23 - error TS1005: ';' expected.

919 /* Clear cookie name. / ~~~~

node_modules/@types/express-serve-static-core/index.d.ts:923:20 - error TS1005: ';' expected.

923 * Set cookie name to val, with the given options. ~~~~

node_modules/@types/express-serve-static-core/index.d.ts:923:30 - error TS1005: ';' expected.

923 * Set cookie name to val, with the given options. ~~~

node_modules/@types/express-serve-static-core/index.d.ts:923:52 - error TS1005: ';' expected.

923 * Set cookie name to val, with the given options. ~~~

node_modules/@types/express-serve-static-core/index.d.ts:927:14 - error TS1005: ';' expected.

927 * - maxAge max-age in milliseconds, converted to expires ~~

node_modules/@types/express-serve-static-core/index.d.ts:927:63 - error TS1005: ';' expected.

927 * - maxAge max-age in milliseconds, converted to expires ~~~

node_modules/@types/express-serve-static-core/index.d.ts:928:14 - error TS1005: ';' expected.

928 * - signed sign the cookie ~~

node_modules/@types/express-serve-static-core/index.d.ts:929:14 - error TS1005: ';' expected.

929 * - path defaults to "/" ~~~~

node_modules/@types/express-serve-static-core/index.d.ts:944:36 - error TS1005: ';' expected.

944 * Set the location header to url. ~~~

node_modules/@types/express-serve-static-core/index.d.ts:946:19 - error TS1005: ';' expected.

946 * The given url can also be the name of a mapped url, for ~~~

node_modules/@types/express-serve-static-core/index.d.ts:958:46 - error TS1005: ';' expected.

958 * When an application is mounted and res.location() ~~~

node_modules/@types/express-serve-static-core/index.d.ts:972:31 - error TS1005: ';' expected.

972 * Redirect to the given url with optional response status ~~~

node_modules/@types/express-serve-static-core/index.d.ts:972:60 - error TS1005: ';' expected.

972 * Redirect to the given url with optional response status ~~

node_modules/@types/express-serve-static-core/index.d.ts:975:23 - error TS1005: ';' expected.

975 * The resulting url is determined by res.location(), so ~~~

node_modules/@types/express-serve-static-core/index.d.ts:975:46 - error TS1005: ';' expected.

975 * The resulting url is determined by res.location(), so ~~~

node_modules/@types/express-serve-static-core/index.d.ts:977:9 - error TS1005: ';' expected.

977 * "back" etc. ~~

node_modules/@types/express-serve-static-core/index.d.ts:994:16 - error TS1005: ';' expected.

994 * Render view with the given options and optional callback fn. ~~~~

node_modules/@types/express-serve-static-core/index.d.ts:994:38 - error TS1005: ';' expected.

994 * Render view with the given options and optional callback fn. ~~~

node_modules/@types/express-serve-static-core/index.d.ts:994:70 - error TS1005: ';' expected.

994 * Render view with the given options and optional callback fn. ~~

node_modules/@types/express-serve-static-core/index.d.ts:1000:12 - error TS1005: ';' expected.

1000 * - cache boolean hinting to the engine it should cache ~

node_modules/@types/express-serve-static-core/index.d.ts:1001:12 - error TS1005: ';' expected.

1001 * - filename filename of the view being rendered ~~~~

node_modules/@types/express-serve-static-core/index.d.ts:1071:53 - error TS1005: ';' expected.

1071 * Register the given template engine callback fn ~~

node_modules/@types/express-serve-static-core/index.d.ts:1072:12 - error TS1005: ';' expected.

1072 * as ext. ~~~

node_modules/@types/express-serve-static-core/index.d.ts:1074:25 - error TS1005: ';' expected.

1074 * By default will require() the engine based on the ~~~

node_modules/@types/express-serve-static-core/index.d.ts:1089:52 - error TS1005: ';' expected.

1089 * though note that it aliases this method as ejs.__express internally ~~~

node_modules/@types/express-serve-static-core/index.d.ts:1104:16 - error TS1005: ';' expected.

1104 * Assign setting to val, or return setting's value. ~~~

node_modules/@types/express-serve-static-core/index.d.ts:1104:29 - error TS1005: ';' expected.

1104 * Assign setting to val, or return setting's value. ~~~

node_modules/@types/express-serve-static-core/index.d.ts:1104:46 - error TS1005: ';' expected.

1104 * Assign setting to val, or return setting's value. ~~~

node_modules/@types/express-serve-static-core/index.d.ts:1140:18 - error TS1005: ';' expected.

1140 * Check if setting is enabled (truthy). ~~~

node_modules/@types/express-serve-static-core/index.d.ts:1152:18 - error TS1005: ';' expected.

1152 * Check if setting is disabled. ~~~

node_modules/@types/express-serve-static-core/index.d.ts:1163:17 - error TS1005: ';' expected.

1163 /* Enable setting. / ~~~

node_modules/@types/express-serve-static-core/index.d.ts:1166:18 - error TS1005: ';' expected.

1166 /* Disable setting. / ~~~

node_modules/@types/express-serve-static-core/index.d.ts:1170:31 - error TS1005: ';' expected.

1170 * Render the given view name name with options ~~~~

node_modules/@types/express-serve-static-core/index.d.ts:1170:48 - error TS1005: ';' expected.

1170 * Render the given view name name with options ~~~

node_modules/@types/express-serve-static-core/index.d.ts:1186:16 - error TS1005: ';' expected.

1186 * A node http.Server is returned, with this ~~~~

node_modules/@types/express-serve-static-core/index.d.ts:1187:33 - error TS1005: ';' expected.

1187 * application (which is a Function) as its ~~~~

node_modules/@types/express-serve-static-core/index.d.ts:1255:1 - error TS1160: Unterminated template literal.

1255

Found 127 errors.

Try updating typscrypt dependence in backend/package.json to "typescript": "4.3.4" and rebuild, this fix for me

https://github.com/DefinitelyTyped/DefinitelyTyped/issues/53397#issuecomment-870283114

jakeharriss commented 1 year ago

**initially we had all this errors when installed in the public server with ubuntu 22, but all errors were completely fixed**** node_modules/@types/express-serve-static-core/index.d.ts:745:13 - error TS1005: ';' expected. 745 - dotfiles serve dotfiles, defaulting to false; can be "allow" to send them ~~~~ node_modules/@types/express-serve-static-core/index.d.ts:745:68 - error TS1005: ';' expected. 745 - dotfiles serve dotfiles, defaulting to false; can be "allow" to send them ~~~ node_modules/@types/express-serve-static-core/index.d.ts:747:43 - error TS1005: ';' expected. 747 Other options are passed along to send. ~~~~ node_modules/@types/express-serve-static-core/index.d.ts:751:48 - error TS1005: ';' expected. 751 The following example illustrates how res.sendFile() may ~~~ node_modules/@types/express-serve-static-core/index.d.ts:752:44 - error TS1005: ';' expected. 752 be used as an alternative for the static() middleware for ~~ node_modules/@types/express-serve-static-core/index.d.ts:753:47 - error TS1005: ';' expected. 753 dynamic situations. The code backing res.sendFile() is actually ~~~ node_modules/@types/express-serve-static-core/index.d.ts:792:40 - error TS1005: ';' expected. 792 Transfer the file at the given path as an attachment. ~~~~ node_modules/@types/express-serve-static-core/index.d.ts:794:54 - error TS1005: ';' expected. 794 Optionally providing an alternate attachment filename, ~~~~ node_modules/@types/express-serve-static-core/index.d.ts:795:31 - error TS1005: ';' expected. 795 and optional callback fn(err). The callback is invoked ~~ node_modules/@types/express-serve-static-core/index.d.ts:797:35 - error TS1005: ';' expected. 797 ocurred. Be sure to check res.headersSent if you plan to respond. ~~~ node_modules/@types/express-serve-static-core/index.d.ts:802:26 - error TS1005: ';' expected. 802 This method uses res.sendfile(). ~~~ node_modules/@types/express-serve-static-core/index.d.ts:809:49 - error TS1005: ';' expected. 809 Set Content-Type response header with type through mime.lookup() ~~~~ node_modules/@types/express-serve-static-core/index.d.ts:809:64 - error TS1005: ';' expected. 809 Set Content-Type response header with type through mime.lookup() ~~~~ node_modules/@types/express-serve-static-core/index.d.ts:810:66 - error TS1005: ';' expected. 810 when it does not contain "/", or set the Content-Type to type otherwise. ~~~~ node_modules/@types/express-serve-static-core/index.d.ts:823:49 - error TS1005: ';' expected. 823 Set Content-Type response header with type through mime.lookup() ~~~~ node_modules/@types/express-serve-static-core/index.d.ts:823:64 - error TS1005: ';' expected. 823 Set Content-Type response header with type through mime.lookup() ~~~~ node_modules/@types/express-serve-static-core/index.d.ts:824:66 - error TS1005: ';' expected. 824 when it does not contain "/", or set the Content-Type to type otherwise. ~~~~ node_modules/@types/express-serve-static-core/index.d.ts:837:52 - error TS1005: ';' expected. 837 Respond to the Acceptable formats using an obj ~~~ node_modules/@types/express-serve-static-core/index.d.ts:840:26 - error TS1005: ';' expected. 840 This method uses req.accepted, an array of ~~~ node_modules/@types/express-serve-static-core/index.d.ts:848:54 - error TS1005: ';' expected. 848 you may alter this within the callback using res.type() ~~~ node_modules/@types/express-serve-static-core/index.d.ts:849:12 - error TS1005: ';' expected. 849 or res.set('Content-Type', ...). ~~~ node_modules/@types/express-serve-static-core/index.d.ts:849:39 - error TS1109: Expression expected. 849 or res.set('Content-Type', ...). ~ node_modules/@types/express-serve-static-core/index.d.ts:882:38 - error TS1005: ';' expected. 882 By default Express passes an Error ~ node_modules/@types/express-serve-static-core/index.d.ts:883:36 - error TS1005: ';' expected. 883 with a .status of 406 to next(err) ~~~~ node_modules/@types/express-serve-static-core/index.d.ts:891:72 - error TS1005: ';' expected. 891 Set Content-Disposition header to attachment with optional filename. ~~~~ node_modules/@types/express-serve-static-core/index.d.ts:896:20 - error TS1005: ';' expected. 896 Set header field to val, or pass ~ node_modules/@types/express-serve-static-core/index.d.ts:896:31 - error TS1005: ';' expected. 896 Set header field to val, or pass ~~~ node_modules/@types/express-serve-static-core/index.d.ts:905:20 - error TS1005: ';' expected. 905 Aliased as res.header(). ~~~ node_modules/@types/express-serve-static-core/index.d.ts:916:31 - error TS1005: ';' expected. 916 / Get value for header field. */ ~ node_modules/@types/express-serve-static-core/index.d.ts:919:23 - error TS1005: ';' expected. 919 / Clear cookie name. / ~~~~ node_modules/@types/express-serve-static-core/index.d.ts:923:20 - error TS1005: ';' expected. 923 Set cookie name to val, with the given options. ~~~~ node_modules/@types/express-serve-static-core/index.d.ts:923:30 - error TS1005: ';' expected. 923 Set cookie name to val, with the given options. ~~~ node_modules/@types/express-serve-static-core/index.d.ts:923:52 - error TS1005: ';' expected. 923 Set cookie name to val, with the given options. ~~~ node_modules/@types/express-serve-static-core/index.d.ts:927:14 - error TS1005: ';' expected. 927 - maxAge max-age in milliseconds, converted to expires ~~ node_modules/@types/express-serve-static-core/index.d.ts:927:63 - error TS1005: ';' expected. 927 - maxAge max-age in milliseconds, converted to expires ~~~ node_modules/@types/express-serve-static-core/index.d.ts:928:14 - error TS1005: ';' expected. 928 - signed sign the cookie ~~ node_modules/@types/express-serve-static-core/index.d.ts:929:14 - error TS1005: ';' expected. 929 - path defaults to "/" ~~~~ node_modules/@types/express-serve-static-core/index.d.ts:944:36 - error TS1005: ';' expected. 944 Set the location header to url. ~~~ node_modules/@types/express-serve-static-core/index.d.ts:946:19 - error TS1005: ';' expected. 946 The given url can also be the name of a mapped url, for ~~~ node_modules/@types/express-serve-static-core/index.d.ts:958:46 - error TS1005: ';' expected. 958 When an application is mounted and res.location() ~~~ node_modules/@types/express-serve-static-core/index.d.ts:972:31 - error TS1005: ';' expected. 972 Redirect to the given url with optional response status ~~~ node_modules/@types/express-serve-static-core/index.d.ts:972:60 - error TS1005: ';' expected. 972 Redirect to the given url with optional response status ~~ node_modules/@types/express-serve-static-core/index.d.ts:975:23 - error TS1005: ';' expected. 975 The resulting url is determined by res.location(), so ~~~ node_modules/@types/express-serve-static-core/index.d.ts:975:46 - error TS1005: ';' expected. 975 The resulting url is determined by res.location(), so ~~~ node_modules/@types/express-serve-static-core/index.d.ts:977:9 - error TS1005: ';' expected. 977 "back" etc. ~~ node_modules/@types/express-serve-static-core/index.d.ts:994:16 - error TS1005: ';' expected. 994 Render view with the given options and optional callback fn. ~~~~ node_modules/@types/express-serve-static-core/index.d.ts:994:38 - error TS1005: ';' expected. 994 Render view with the given options and optional callback fn. ~~~ node_modules/@types/express-serve-static-core/index.d.ts:994:70 - error TS1005: ';' expected. 994 Render view with the given options and optional callback fn. ~~ node_modules/@types/express-serve-static-core/index.d.ts:1000:12 - error TS1005: ';' expected. 1000 - cache boolean hinting to the engine it should cache ~ node_modules/@types/express-serve-static-core/index.d.ts:1001:12 - error TS1005: ';' expected. 1001 - filename filename of the view being rendered ~~~~ node_modules/@types/express-serve-static-core/index.d.ts:1071:53 - error TS1005: ';' expected. 1071 Register the given template engine callback fn ~~ node_modules/@types/express-serve-static-core/index.d.ts:1072:12 - error TS1005: ';' expected. 1072 as ext. ~~~ node_modules/@types/express-serve-static-core/index.d.ts:1074:25 - error TS1005: ';' expected. 1074 By default will require() the engine based on the ~~~ node_modules/@types/express-serve-static-core/index.d.ts:1089:52 - error TS1005: ';' expected. 1089 though note that it aliases this method as ejs.__express internally ~~~ node_modules/@types/express-serve-static-core/index.d.ts:1104:16 - error TS1005: ';' expected. 1104 Assign setting to val, or return setting's value. ~~~ node_modules/@types/express-serve-static-core/index.d.ts:1104:29 - error TS1005: ';' expected. 1104 Assign setting to val, or return setting's value. ~~~ node_modules/@types/express-serve-static-core/index.d.ts:1104:46 - error TS1005: ';' expected. 1104 Assign setting to val, or return setting's value. ~~~ node_modules/@types/express-serve-static-core/index.d.ts:1140:18 - error TS1005: ';' expected. 1140 Check if setting is enabled (truthy). ~~~ node_modules/@types/express-serve-static-core/index.d.ts:1152:18 - error TS1005: ';' expected. 1152 Check if setting is disabled. ~~~ node_modules/@types/express-serve-static-core/index.d.ts:1163:17 - error TS1005: ';' expected. 1163 / Enable setting. */ ~~~ node_modules/@types/express-serve-static-core/index.d.ts:1166:18 - error TS1005: ';' expected. 1166 / Disable setting. / ~~~ node_modules/@types/express-serve-static-core/index.d.ts:1170:31 - error TS1005: ';' expected. 1170 Render the given view name name with options ~~~~ node_modules/@types/express-serve-static-core/index.d.ts:1170:48 - error TS1005: ';' expected. 1170 Render the given view name name with options ~~~ node_modules/@types/express-serve-static-core/index.d.ts:1186:16 - error TS1005: ';' expected. 1186 A node http.Server is returned, with this ~~~~ node_modules/@types/express-serve-static-core/index.d.ts:1187:33 - error TS1005: ';' expected. 1187 * application (which is a Function) as its ~~~~ node_modules/@types/express-serve-static-core/index.d.ts:1255:1 - error TS1160: Unterminated template literal. 1255 Found 127 errors. ahsan@ahsan-XPS-13-7390:/media/ahsan/D1/workspace/whaticket/backend$ tsc --version Command 'tsc' not found, but can be installed with: sudo apt install node-typescript ahsan@ahsan-XPS-13-7390:/media/ahsan/D1/workspace/whaticket/backend$ npm install -g typescript@4.0.3 npm ERR! code EACCES npm ERR! syscall mkdir npm ERR! path /usr/local/lib/node_modules npm ERR! errno -13 npm ERR! Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules' npm ERR! [Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules'] { npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'mkdir', npm ERR! path: '/usr/local/lib/node_modules' npm ERR! } npm ERR! npm ERR! The operation was rejected by your operating system. npm ERR! It is likely you do not have the permissions to access this file as the current user npm ERR! npm ERR! If you believe this might be a permissions issue, please double-check the npm ERR! permissions of the file and its containing directories, or try running npm ERR! the command again as root/Administrator. npm ERR! A complete log of this run can be found in: npm ERR! /home/ahsan/.npm/_logs/2022-10-12T02_24_24_270Z-debug-0.log ahsan@ahsan-XPS-13-7390:/media/ahsan/D1/workspace/whaticket/backend$ sudo npm install -g typescript@4.0.3 [sudo] password for ahsan: added 1 package, and audited 2 packages in 3s found 0 vulnerabilities ahsan@ahsan-XPS-13-7390:/media/ahsan/D1/workspace/whaticket/backend$ tsc --version Version 4.0.3 ahsan@ahsan-XPS-13-7390:/media/ahsan/D1/workspace/whaticket/backend$ npm run build

backend@1.0.0 build tsc

node_modules/@types/express-serve-static-core/index.d.ts:99:68 - error TS1110: Type expected. 99 type RemoveTail<S extends string, Tail extends string> = S extends ${infer P}${Tail} ? P : S; ~~~ node_modules/@types/express-serve-static-core/index.d.ts:99:77 - error TS1005: '}' expected. 99 type RemoveTail<S extends string, Tail extends string> = S extends ${infer P}${Tail} ? P : S; ~ node_modules/@types/express-serve-static-core/index.d.ts:99:78 - error TS1128: Declaration or statement expected. 99 type RemoveTail<S extends string, Tail extends string> = S extends ${infer P}${Tail} ? P : S; ~ node_modules/@types/express-serve-static-core/index.d.ts:99:80 - error TS1005: ';' expected. 99 type RemoveTail<S extends string, Tail extends string> = S extends ${infer P}${Tail} ? P : S; ~ node_modules/@types/express-serve-static-core/index.d.ts:101:33 - error TS1005: ';' expected. 101 RemoveTail<RemoveTail<S, /${string}>, -${string}>, ~ node_modules/@types/express-serve-static-core/index.d.ts:101:48 - error TS1005: ';' expected. 101 RemoveTail<RemoveTail<S, /${string}>, -${string}>, ~ node_modules/@types/express-serve-static-core/index.d.ts:102:8 - error TS1005: ';' expected. 102 .${string} ~ node_modules/@types/express-serve-static-core/index.d.ts:108:22 - error TS1005: ';' expected. 108 : Route extends ${string}(${string} ~ node_modules/@types/express-serve-static-core/index.d.ts:108:23 - error TS1005: ';' expected. 108 : Route extends ${string}(${string} ~ node_modules/@types/express-serve-static-core/index.d.ts:108:33 - error TS1005: ')' expected. 108 : Route extends ${string}(${string} ~ node_modules/@types/express-serve-static-core/index.d.ts:110:26 - error TS1005: ';' expected. 110 : Route extends ${string}:${infer Rest} ~ node_modules/@types/express-serve-static-core/index.d.ts:110:27 - error TS1005: ';' expected. 110 : Route extends ${string}:${infer Rest} ~ node_modules/@types/express-serve-static-core/index.d.ts:110:35 - error TS1128: Declaration or statement expected. 110 : Route extends ${string}:${infer Rest} ~ node_modules/@types/express-serve-static-core/index.d.ts:110:37 - error TS1005: ';' expected. 110 : Route extends ${string}:${infer Rest} ~ node_modules/@types/express-serve-static-core/index.d.ts:110:44 - error TS1005: ';' expected. 110 : Route extends ${string}:${infer Rest} ~~~~ node_modules/@types/express-serve-static-core/index.d.ts:114:52 - error TS1005: ';' expected. 114 : GetRouteParameter extends ${infer ParamName}? ~ node_modules/@types/express-serve-static-core/index.d.ts:114:53 - error TS1005: ';' expected. 114 : GetRouteParameter extends ${infer ParamName}? ~ node_modules/@types/express-serve-static-core/index.d.ts:114:60 - error TS1005: ';' expected. 114 : GetRouteParameter extends ${infer ParamName}? ~~~~~ node_modules/@types/express-serve-static-core/index.d.ts:114:70 - error TS1128: Declaration or statement expected. 114 : GetRouteParameter extends ${infer ParamName}? ~ node_modules/@types/express-serve-static-core/index.d.ts:118:28 - error TS1005: ';' expected. 118 (Rest extends ${GetRouteParameter<Rest>}${infer Next} ~ node_modules/@types/express-serve-static-core/index.d.ts:118:29 - error TS1005: ';' expected. 118 (Rest extends ${GetRouteParameter<Rest>}${infer Next} ~ node_modules/@types/express-serve-static-core/index.d.ts:118:53 - error TS1005: '(' expected. 118 (Rest extends ${GetRouteParameter<Rest>}${infer Next} ~ node_modules/@types/express-serve-static-core/index.d.ts:118:55 - error TS1005: ';' expected. 118 (Rest extends ${GetRouteParameter<Rest>}${infer Next} ~ node_modules/@types/express-serve-static-core/index.d.ts:118:62 - error TS1005: ';' expected. 118 (Rest extends ${GetRouteParameter<Rest>}${infer Next} ~~~~ node_modules/@types/express-serve-static-core/index.d.ts:224:41 - error TS1005: ';' expected. 224 Map the given param placeholder name(s) to the given callback(s). ~~~~ node_modules/@types/express-serve-static-core/index.d.ts:233:31 - error TS1005: ';' expected. 233 of the user. Once the next() function is invoked, just like middleware ~~~~ node_modules/@types/express-serve-static-core/index.d.ts:259:62 - error TS1005: ';' expected. 259 Special-cased "all" method, applying the given route path, ~~~~ node_modules/@types/express-serve-static-core/index.d.ts:355:49 - error TS1005: ';' expected. 355 @param P For most requests, this should be ParamsDictionary, but if you're ~~~~ node_modules/@types/express-serve-static-core/index.d.ts:356:59 - error TS1005: ';' expected. 356 using this in a route handler for a route that uses a RegExp or a wildcard ~~ node_modules/@types/express-serve-static-core/index.d.ts:357:5 - error TS1005: ';' expected. 357 string path (e.g. '/user/*'), then req.params will be an array, in ~~ node_modules/@types/express-serve-static-core/index.d.ts:357:25 - error TS1005: ';' expected. 357 string path (e.g. `'/user/'), thenreq.paramswill be an array, in ~~~~~~~~~ node_modules/@types/express-serve-static-core/index.d.ts:357:44 - error TS1005: ';' expected. 357 *stringpath (e.g.'/user/'), thenreq.params` will be an array, in ~~~ node_modules/@types/express-serve-static-core/index.d.ts:358:31 - error TS1005: ';' expected. 358 which case you should use ParamsArray instead. ~~~ node_modules/@types/express-serve-static-core/index.d.ts:363:84 - error TS1005: ';' expected. 363 app.get('/user/:id', (req, res) => res.send(req.params.id)); // implicitly ParamsDictionary ~~~~ node_modules/@types/express-serve-static-core/index.d.ts:378:13 - error TS1005: ';' expected. 378 The Referrer header field is special-cased, ~~~~ node_modules/@types/express-serve-static-core/index.d.ts:379:14 - error TS1005: ';' expected. 379 both Referrer and Referer are interchangeable. ~~~~ node_modules/@types/express-serve-static-core/index.d.ts:379:29 - error TS1005: ';' expected. 379 both Referrer and Referer are interchangeable. ~~~ node_modules/@types/express-serve-static-core/index.d.ts:392:20 - error TS1005: ';' expected. 392 Aliased as req.header(). ~~~ node_modules/@types/express-serve-static-core/index.d.ts:401:28 - error TS1005: ';' expected. 401 Check if the given type(s) is acceptable, returning ~~~~ node_modules/@types/express-serve-static-core/index.d.ts:402:45 - error TS1005: ';' expected. 402 the best match when true, otherwise undefined, in which ~~~~~ node_modules/@types/express-serve-static-core/index.d.ts:405:13 - error TS1005: ';' expected. 405 The type value may be a single mime type string ~~~~ node_modules/@types/express-serve-static-core/index.d.ts:479:56 - error TS1005: ';' expected. 479 Parse Range header field, capping to the given size. ~~~~ node_modules/@types/express-serve-static-core/index.d.ts:483:48 - error TS1005: ';' expected. 483 If the Range header field is not given undefined is returned. ~~~~~ node_modules/@types/express-serve-static-core/index.d.ts:502:35 - error TS1005: ';' expected. 502 Return the value of param name when present or defaultValue. ~~~~ node_modules/@types/express-serve-static-core/index.d.ts:502:58 - error TS1005: ';' expected. 502 Return the value of param name when present or defaultValue. ~~~~ node_modules/@types/express-serve-static-core/index.d.ts:508:36 - error TS1005: ';' expected. 508 To utilize request bodies, req.body ~~~ node_modules/@types/express-serve-static-core/index.d.ts:510:13 - error TS1005: ';' expected. 510 the connect.bodyParser() middleware. ~~~ node_modules/@types/express-serve-static-core/index.d.ts:516:53 - error TS1005: ';' expected. 516 header field, and it contains the give mime type. ~~~~ node_modules/@types/express-serve-static-core/index.d.ts:556:26 - error TS1005: ';' expected. 556 "trust proxy" is true return ~~~~ node_modules/@types/express-serve-static-core/index.d.ts:562:31 - error TS1005: ';' expected. 562 When "trust proxy" is true, parse ~~~~ node_modules/@types/express-serve-static-core/index.d.ts:585:24 - error TS1005: ';' expected. 585 Short-hand for url.parse(req.url).pathname. ~~~ node_modules/@types/express-serve-static-core/index.d.ts:666:20 - error TS1005: ';' expected. 666 Set status code. ~~~~ node_modules/@types/express-serve-static-core/index.d.ts:671:46 - error TS1005: ';' expected. 671 Set the response HTTP status code to statusCode and send its string representation as the response body. ~~ node_modules/@types/express-serve-static-core/index.d.ts:684:46 - error TS1005: ';' expected. 684 Set Link header field with the given links. ~ node_modules/@types/express-serve-static-core/index.d.ts:732:40 - error TS1005: ';' expected. 732 Transfer the file at the given path. ~~~~ node_modules/@types/express-serve-static-core/index.d.ts:735:22 - error TS1005: ';' expected. 735 The callback fn(err) is invoked when the transfer is complete ~~ node_modules/@types/express-serve-static-core/index.d.ts:736:51 - error TS1005: ';' expected. 736 or when an error occurs. Be sure to check res.headersSent ~~~ node_modules/@types/express-serve-static-core/index.d.ts:742:13 - error TS1005: ';' expected. 742 - maxAge defaulting to 0 (can be string converted by ms) ~~ node_modules/@types/express-serve-static-core/index.d.ts:742:68 - error TS1005: ';' expected. 742 - maxAge defaulting to 0 (can be string converted by ms) ~~ node_modules/@types/express-serve-static-core/index.d.ts:743:13 - error TS1005: ';' expected. 743 - root root directory for relative filenames ~~~~ node_modules/@types/express-serve-static-core/index.d.ts:744:13 - error TS1005: ';' expected. 744 - headers object of headers to serve with file ~~~ node_modules/@types/express-serve-static-core/index.d.ts:745:13 - error TS1005: ';' expected. 745 - dotfiles serve dotfiles, defaulting to false; can be "allow" to send them ~~~~ node_modules/@types/express-serve-static-core/index.d.ts:745:68 - error TS1005: ';' expected. 745 - dotfiles serve dotfiles, defaulting to false; can be "allow" to send them ~~~ node_modules/@types/express-serve-static-core/index.d.ts:747:43 - error TS1005: ';' expected. 747 Other options are passed along to send. ~~~~ node_modules/@types/express-serve-static-core/index.d.ts:751:48 - error TS1005: ';' expected. 751 The following example illustrates how res.sendFile() may ~~~ node_modules/@types/express-serve-static-core/index.d.ts:752:44 - error TS1005: ';' expected. 752 be used as an alternative for the static() middleware for ~~ node_modules/@types/express-serve-static-core/index.d.ts:753:47 - error TS1005: ';' expected. 753 dynamic situations. The code backing res.sendFile() is actually ~~~ node_modules/@types/express-serve-static-core/index.d.ts:792:40 - error TS1005: ';' expected. 792 Transfer the file at the given path as an attachment. ~~~~ node_modules/@types/express-serve-static-core/index.d.ts:794:54 - error TS1005: ';' expected. 794 Optionally providing an alternate attachment filename, ~~~~ node_modules/@types/express-serve-static-core/index.d.ts:795:31 - error TS1005: ';' expected. 795 and optional callback fn(err). The callback is invoked ~~ node_modules/@types/express-serve-static-core/index.d.ts:797:35 - error TS1005: ';' expected. 797 ocurred. Be sure to check res.headersSent if you plan to respond. ~~~ node_modules/@types/express-serve-static-core/index.d.ts:802:26 - error TS1005: ';' expected. 802 This method uses res.sendfile(). ~~~ node_modules/@types/express-serve-static-core/index.d.ts:809:49 - error TS1005: ';' expected. 809 Set Content-Type response header with type through mime.lookup() ~~~~ node_modules/@types/express-serve-static-core/index.d.ts:809:64 - error TS1005: ';' expected. 809 Set Content-Type response header with type through mime.lookup() ~~~~ node_modules/@types/express-serve-static-core/index.d.ts:810:66 - error TS1005: ';' expected. 810 when it does not contain "/", or set the Content-Type to type otherwise. ~~~~ node_modules/@types/express-serve-static-core/index.d.ts:823:49 - error TS1005: ';' expected. 823 Set Content-Type response header with type through mime.lookup() ~~~~ node_modules/@types/express-serve-static-core/index.d.ts:823:64 - error TS1005: ';' expected. 823 Set Content-Type response header with type through mime.lookup() ~~~~ node_modules/@types/express-serve-static-core/index.d.ts:824:66 - error TS1005: ';' expected. 824 when it does not contain "/", or set the Content-Type to type otherwise. ~~~~ node_modules/@types/express-serve-static-core/index.d.ts:837:52 - error TS1005: ';' expected. 837 Respond to the Acceptable formats using an obj ~~~ node_modules/@types/express-serve-static-core/index.d.ts:840:26 - error TS1005: ';' expected. 840 This method uses req.accepted, an array of ~~~ node_modules/@types/express-serve-static-core/index.d.ts:848:54 - error TS1005: ';' expected. 848 you may alter this within the callback using res.type() ~~~ node_modules/@types/express-serve-static-core/index.d.ts:849:12 - error TS1005: ';' expected. 849 or res.set('Content-Type', ...). ~~~ node_modules/@types/express-serve-static-core/index.d.ts:849:39 - error TS1109: Expression expected. 849 or res.set('Content-Type', ...). ~ node_modules/@types/express-serve-static-core/index.d.ts:882:38 - error TS1005: ';' expected. 882 By default Express passes an Error ~ node_modules/@types/express-serve-static-core/index.d.ts:883:36 - error TS1005: ';' expected. 883 with a .status of 406 to next(err) ~~~~ node_modules/@types/express-serve-static-core/index.d.ts:891:72 - error TS1005: ';' expected. 891 Set Content-Disposition header to attachment with optional filename. ~~~~ node_modules/@types/express-serve-static-core/index.d.ts:896:20 - error TS1005: ';' expected. 896 Set header field to val, or pass ~ node_modules/@types/express-serve-static-core/index.d.ts:896:31 - error TS1005: ';' expected. 896 Set header field to val, or pass ~~~ node_modules/@types/express-serve-static-core/index.d.ts:905:20 - error TS1005: ';' expected. 905 Aliased as res.header(). ~~~ node_modules/@types/express-serve-static-core/index.d.ts:916:31 - error TS1005: ';' expected. 916 / Get value for header field. */ ~ node_modules/@types/express-serve-static-core/index.d.ts:919:23 - error TS1005: ';' expected. 919 / Clear cookie name. / ~~~~ node_modules/@types/express-serve-static-core/index.d.ts:923:20 - error TS1005: ';' expected. 923 Set cookie name to val, with the given options. ~~~~ node_modules/@types/express-serve-static-core/index.d.ts:923:30 - error TS1005: ';' expected. 923 Set cookie name to val, with the given options. ~~~ node_modules/@types/express-serve-static-core/index.d.ts:923:52 - error TS1005: ';' expected. 923 Set cookie name to val, with the given options. ~~~ node_modules/@types/express-serve-static-core/index.d.ts:927:14 - error TS1005: ';' expected. 927 - maxAge max-age in milliseconds, converted to expires ~~ node_modules/@types/express-serve-static-core/index.d.ts:927:63 - error TS1005: ';' expected. 927 - maxAge max-age in milliseconds, converted to expires ~~~ node_modules/@types/express-serve-static-core/index.d.ts:928:14 - error TS1005: ';' expected. 928 - signed sign the cookie ~~ node_modules/@types/express-serve-static-core/index.d.ts:929:14 - error TS1005: ';' expected. 929 - path defaults to "/" ~~~~ node_modules/@types/express-serve-static-core/index.d.ts:944:36 - error TS1005: ';' expected. 944 Set the location header to url. ~~~ node_modules/@types/express-serve-static-core/index.d.ts:946:19 - error TS1005: ';' expected. 946 The given url can also be the name of a mapped url, for ~~~ node_modules/@types/express-serve-static-core/index.d.ts:958:46 - error TS1005: ';' expected. 958 When an application is mounted and res.location() ~~~ node_modules/@types/express-serve-static-core/index.d.ts:972:31 - error TS1005: ';' expected. 972 Redirect to the given url with optional response status ~~~ node_modules/@types/express-serve-static-core/index.d.ts:972:60 - error TS1005: ';' expected. 972 Redirect to the given url with optional response status ~~ node_modules/@types/express-serve-static-core/index.d.ts:975:23 - error TS1005: ';' expected. 975 The resulting url is determined by res.location(), so ~~~ node_modules/@types/express-serve-static-core/index.d.ts:975:46 - error TS1005: ';' expected. 975 The resulting url is determined by res.location(), so ~~~ node_modules/@types/express-serve-static-core/index.d.ts:977:9 - error TS1005: ';' expected. 977 "back" etc. ~~ node_modules/@types/express-serve-static-core/index.d.ts:994:16 - error TS1005: ';' expected. 994 Render view with the given options and optional callback fn. ~~~~ node_modules/@types/express-serve-static-core/index.d.ts:994:38 - error TS1005: ';' expected. 994 Render view with the given options and optional callback fn. ~~~ node_modules/@types/express-serve-static-core/index.d.ts:994:70 - error TS1005: ';' expected. 994 Render view with the given options and optional callback fn. ~~ node_modules/@types/express-serve-static-core/index.d.ts:1000:12 - error TS1005: ';' expected. 1000 - cache boolean hinting to the engine it should cache ~ node_modules/@types/express-serve-static-core/index.d.ts:1001:12 - error TS1005: ';' expected. 1001 - filename filename of the view being rendered ~~~~ node_modules/@types/express-serve-static-core/index.d.ts:1071:53 - error TS1005: ';' expected. 1071 Register the given template engine callback fn ~~ node_modules/@types/express-serve-static-core/index.d.ts:1072:12 - error TS1005: ';' expected. 1072 as ext. ~~~ node_modules/@types/express-serve-static-core/index.d.ts:1074:25 - error TS1005: ';' expected. 1074 By default will require() the engine based on the ~~~ node_modules/@types/express-serve-static-core/index.d.ts:1089:52 - error TS1005: ';' expected. 1089 though note that it aliases this method as ejs.__express internally ~~~ node_modules/@types/express-serve-static-core/index.d.ts:1104:16 - error TS1005: ';' expected. 1104 Assign setting to val, or return setting's value. ~~~ node_modules/@types/express-serve-static-core/index.d.ts:1104:29 - error TS1005: ';' expected. 1104 Assign setting to val, or return setting's value. ~~~ node_modules/@types/express-serve-static-core/index.d.ts:1104:46 - error TS1005: ';' expected. 1104 Assign setting to val, or return setting's value. ~~~ node_modules/@types/express-serve-static-core/index.d.ts:1140:18 - error TS1005: ';' expected. 1140 Check if setting is enabled (truthy). ~~~ node_modules/@types/express-serve-static-core/index.d.ts:1152:18 - error TS1005: ';' expected. 1152 Check if setting is disabled. ~~~ node_modules/@types/express-serve-static-core/index.d.ts:1163:17 - error TS1005: ';' expected. 1163 / Enable setting. */ ~~~ node_modules/@types/express-serve-static-core/index.d.ts:1166:18 - error TS1005: ';' expected. 1166 / Disable setting. / ~~~ node_modules/@types/express-serve-static-core/index.d.ts:1170:31 - error TS1005: ';' expected. 1170 Render the given view name name with options ~~~~ node_modules/@types/express-serve-static-core/index.d.ts:1170:48 - error TS1005: ';' expected. 1170 Render the given view name name with options ~~~ node_modules/@types/express-serve-static-core/index.d.ts:1186:16 - error TS1005: ';' expected. 1186 A node http.Server is returned, with this ~~~~ node_modules/@types/express-serve-static-core/index.d.ts:1187:33 - error TS1005: ';' expected. 1187 * application (which is a Function) as its ~~~~ node_modules/@types/express-serve-static-core/index.d.ts:1255:1 - error TS1160: Unterminated template literal. 1255 Found 127 errors.

Try updating typscrypt dependence in backend/package.json to "typescript": "4.3.4" and rebuild, this fix for me

DefinitelyTyped/DefinitelyTyped#53397 (comment)

Thank you for the reply, we tried all of that but the issue persist

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.

mohaaosman commented 1 year ago

Hey, did you fix the issue or are you still looking for a fix? @jakeharriss

jakeharriss commented 1 year ago

Hi brother not yet, have you had this issue before or do you know how to solve it? I have sent an email to the creator of the app but he has not replied yet.

mohaaosman commented 1 year ago

@jakeharriss i had the issue and i solved my problem by changing the server config, and adding transports: ["websocket", "polling"], to socket config(frontend) helped. So what server are you using nginx or apache?

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.

jakeharriss commented 1 year ago

@jakeharriss i had the issue and i solved my problem by changing the server config, and adding transports: ["websocket", "polling"], to socket config(frontend) helped. So what server are you using nginx or apache?

Hello my apologies I have been out for a while because I was out of the country, I am using nginx, can I hire you to solve it? it is installed in my server but I have not used it yet.

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.

jakeharriss commented 1 year ago

@mohaaosman i will try that and let you know what happens, i hope it resolves the issue

diegolupinacci commented 1 year ago

@mohaaosman i will try that and let you know what happens, i hope it resolves the issue

Hello,

have you been able to solve the problem? If you could do it... how did you do it?

Thanks

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.

Horgun commented 1 year ago

transports: ["websocket", "polling"], to socket config(frontend)

Where exactly would you insert this config?

Sadly I'm having this issue: it reads qr code but just won't connect. :-(

Ubuntu 20.04 1GB RAM VPS. @canove would you know why this happens?

9AYQq60 1

firefox_je5vXI65R4

H74FyTRzmw

I believe your problem is unrelated to this issue. You're probably gonna get it to work if you follow this fix

gkp1 commented 1 year ago

Oh, I saw that fix yesterday on WaWebJS, totally forgot about that! Yep it fixed it, thanks for the super quick response! @Horgun

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.

felipeaz3vedo commented 1 year ago

I'm facing the same problem when i deploy my project in a VPS. Are u find any solution? @jakeharriss

freefugga commented 1 year ago

Same ISSUE! Please help anyone!

freefugga commented 1 year ago

@jakeharriss @felipeaz3vedo @diegolupinacci @mohaaosman @megaatacadao

I found the fix!

The backend works on 3000 port and frontend works on 3333 as mentioned in server.js file in frontend folder.

If you use any other port then it'll continue loading and won't generate any qr code...

if you want to change the port of frontend, then change 3333 port in server.js file also in frontend then it'll work perfectly!

similarly, if you change backend 3000 port to any other, then you have to change PORT=3000 or PORT=8080 set in backend .env file to your desired port. then it'll work

Kouthk commented 11 months ago

Here, it synchronized a part after scanning the QR code, but soon after it stops and the following error appears in the console log "WebSocket is closed before the connection is established" and then, it no longer works.

raffus commented 11 months ago

@jakeharriss i had the issue and i solved my problem by changing the server config, and adding transports: ["websocket", "polling"], to socket config(frontend) helped. So what server are you using nginx or apache?

Hi there @jakeharriss! Thanks for sharing the solution. Could you please be more specific on which file you've changed and the full procedure?

Thanks!