[BUG] npm build bug
brtnfld opened this issue · 0 comments
Describe the bug
when I try to do "npm run build" I get the following errors:
jira-2-github@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/*'
), 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/*'
), then req.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.
To Reproduce
I tried it both on mac, with npm 8.3.1. and opensuse npm 8.19.2, same issue.