Closed greyhatt22 closed 1 year ago
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'run', 'build' ]
2 info using npm@6.14.17
3 info using node@v14.20.1
4 verbose run-script [ 'prebuild', 'build', 'postbuild' ]
5 info lifecycle backend@1.0.0~prebuild: backend@1.0.0
6 info lifecycle backend@1.0.0~build: backend@1.0.0
7 verbose lifecycle backend@1.0.0~build: unsafe-perm in lifecycle true
8 verbose lifecycle backend@1.0.0~build: PATH: /usr/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/root/whaticket/backend/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
9 verbose lifecycle backend@1.0.0~build: CWD: /root/whaticket/backend
10 silly lifecycle backend@1.0.0~build: Args: [ '-c', 'tsc' ]
11 silly lifecycle backend@1.0.0~build: Returned: code: 2 signal: null
12 info lifecycle backend@1.0.0~build: Failed to exec build script
13 verbose stack Error: backend@1.0.0 build: tsc
13 verbose stack Exit status 2
13 verbose stack at EventEmitter.tsc
22 error Exit status 2
23 error Failed at the backend@1.0.0 build script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 2, true ]
These are the logs
estou com o mesmo problema
a versão do typescript está dando problemas npm uninstall typescript npm install typescript@4.1.2 npm run build novamente
ou hora que clonar troque no package.json pela versão 4.1.2 e npm run build créditos: Jorge Junior, usuário do ZDG Telegram ;)
Thanks for help!
update the version of /typescript: 4.8.4 in Package.json or update the typescript fixed the issue.
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! /root/.npm/_logs/2022-09-26T19_32_11_295Z-debug.log