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
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
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
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/*'`), then `req.params` will be an array, in
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
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`.
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: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: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`
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
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
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.
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.
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: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:923:20 - error TS1005: ';' expected.
923 * Set cookie `name` to `val`, with the given `options`.
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:946:19 - error TS1005: ';' expected.
946 * The given `url` can also be the name of a mapped url, for
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`
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
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:1074:25 - error TS1005: ';' expected.
1074 * By default will `require()` the engine based on the
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! backend@1.0.0 build: tsc
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the backend@1.0.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/deploy/.npm/_logs/2022-09-16T16_16_05_496Z-debug.log
deploy@whaticket:~/demo/backend$
deploy@whaticket:~/demo/backend$ npm update typescript
deploy@whaticket:~/demo/backend$ npm run build
after installing npm install in the backend folder, the following error
repo: https://github.com/canove/whaticket.git
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: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: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: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:356:59 - error TS1005: ';' expected.
356 * using this in a route handler for a route that uses a
RegExp
or a wildcardnode_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, innode_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:378:13 - error TS1005: ';' expected.
378 * The
Referrer
header field is special-cased,node_modules/@types/express-serve-static-core/index.d.ts:379:29 - error TS1005: ';' expected.
379 * both
Referrer
andReferer
are interchangeable.node_modules/@types/express-serve-static-core/index.d.ts:401:28 - error TS1005: ';' expected.
401 * Check if the given
type(s)
is acceptable, returningnode_modules/@types/express-serve-static-core/index.d.ts:405:13 - error TS1005: ';' expected.
405 * The
type
value may be a single mime type stringnode_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:58 - error TS1005: ';' expected.
502 * Return the value of param
name
when present ordefaultValue
.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:556:26 - error TS1005: ';' expected.
556 * "trust proxy" is
true
returnnode_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: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:732:40 - error TS1005: ';' expected.
732 * Transfer the file at the given
path
.node_modules/@types/express-serve-static-core/index.d.ts:742:13 - error TS1005: ';' expected.
742 * -
maxAge
defaulting to 0 (can be string converted byms
)node_modules/@types/express-serve-static-core/index.d.ts:744:13 - error TS1005: ';' expected.
744 * -
headers
object of headers to serve with filenode_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 themnode_modules/@types/express-serve-static-core/index.d.ts:751:48 - error TS1005: ';' expected.
751 * The following example illustrates how
res.sendFile()
maynode_modules/@types/express-serve-static-core/index.d.ts:753:47 - error TS1005: ';' expected.
753 * dynamic situations. The code backing
res.sendFile()
is actuallynode_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:802:26 - error TS1005: ';' expected.
802 * This method uses
res.sendfile()
.node_modules/@types/express-serve-static-core/index.d.ts:809:64 - error TS1005: ';' expected.
809 * Set Content-Type response header with
type
throughmime.lookup()
node_modules/@types/express-serve-static-core/index.d.ts:823:49 - error TS1005: ';' expected.
823 * Set Content-Type response header with
type
throughmime.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:840:26 - error TS1005: ';' expected.
840 * This method uses
req.accepted
, an array ofnode_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:883:36 - error TS1005: ';' expected.
883 * with a
.status
of 406 tonext(err)
node_modules/@types/express-serve-static-core/index.d.ts:896:20 - error TS1005: ';' expected.
896 * Set header
field
toval
, or passnode_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:919:23 - error TS1005: ';' expected.
919 /* Clear cookie
name
. /node_modules/@types/express-serve-static-core/index.d.ts:923:30 - error TS1005: ';' expected.
923 * Set cookie
name
toval
, with the givenoptions
.node_modules/@types/express-serve-static-core/index.d.ts:927:14 - error TS1005: ';' expected.
927 * -
maxAge
max-age in milliseconds, converted toexpires
node_modules/@types/express-serve-static-core/index.d.ts:928:14 - error TS1005: ';' expected.
928 * -
signed
sign the cookienode_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: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:60 - error TS1005: ';' expected.
972 * Redirect to the given
url
with optional responsestatus
node_modules/@types/express-serve-static-core/index.d.ts:975:46 - error TS1005: ';' expected.
975 * The resulting
url
is determined byres.location()
, sonode_modules/@types/express-serve-static-core/index.d.ts:994:16 - error TS1005: ';' expected.
994 * Render
view
with the givenoptions
and optional callbackfn
.node_modules/@types/express-serve-static-core/index.d.ts:994:70 - error TS1005: ';' expected.
994 * Render
view
with the givenoptions
and optional callbackfn
. ~~node_modules/@types/express-serve-static-core/index.d.ts:1000:12 - error TS1005: ';' expected.
1000 * -
cache
boolean hinting to the engine it should cachenode_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:1089:52 - error TS1005: ';' expected.
1089 * though note that it aliases this method as
ejs.__express
internallynode_modules/@types/express-serve-static-core/index.d.ts:1104:29 - error TS1005: ';' expected.
1104 * Assign
setting
toval
, or returnsetting
'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:1163:17 - error TS1005: ';' expected.
1163 /* Enable
setting
. /node_modules/@types/express-serve-static-core/index.d.ts:1170:31 - error TS1005: ';' expected.
1170 * Render the given view
name
name withoptions
node_modules/@types/express-serve-static-core/index.d.ts:1186:16 - error TS1005: ';' expected.
1186 * A node
http.Server
is returned, with thisnode_modules/@types/express-serve-static-core/index.d.ts:1255:1 - error TS1160: Unterminated template literal.
1255
Found 127 errors.
npm ERR! code ELIFECYCLE npm ERR! errno 2 npm ERR! backend@1.0.0 build:
tsc
npm ERR! Exit status 2 npm ERR! npm ERR! Failed at the backend@1.0.0 build script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.npm ERR! A complete log of this run can be found in: npm ERR! /home/deploy/.npm/_logs/2022-09-16T16_16_05_496Z-debug.log deploy@whaticket:~/demo/backend$ deploy@whaticket:~/demo/backend$ npm update typescript deploy@whaticket:~/demo/backend$ npm run build