nestjs-microservices-example icon indicating copy to clipboard operation
nestjs-microservices-example copied to clipboard

Except for db, all others failed to start

Open qidasheng369 opened this issue 1 year ago • 0 comments

image

node_modules/@types/express-serve-static-core/index.d.ts(1211,48): error TS1005: ';' expected. node_modules/@types/express-serve-static-core/index.d.ts(1227,16): error TS1005: ';' expected. node_modules/@types/express-serve-static-core/index.d.ts(1228,33): error TS1005: ';' expected. node_modules/@types/express-serve-static-core/index.d.ts(1296,1): error TS1160: Unterminated template literal. npm ERR! code ELIFECYCLE npm ERR! errno 2 npm ERR! [email protected] build: rimraf dist && tsc -p tsconfig.build.json npm ERR! Exit status 2 npm ERR! npm ERR! Failed at the [email protected] 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/2024-09-04T16_42_01_564Z-debug.log

It's all about this issue.

more msg

user serve

npm run build && npm run start:prod

[email protected] build /Users/qidasheng/dev/service/nestjs/nestjs-microservices-example/user rimraf dist && tsc -p tsconfig.build.json

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

93 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:93:77 - error TS1005: '}' expected.

93 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:93:78 - error TS1128: Declaration or statement expected.

93 type RemoveTail<S extends string, Tail extends string> = S extends ${infer P}${Tail} ? P : S; npm error Found: @nestjs/[email protected] npm error node_modules/@nestjs/common npm error @nestjs/common@"8.0.0" from the root project npm error npm error Could not resolve dependency: npm error peer @nestjs/common@"^6.0.0 || ^7.0.0" from @nestjs/[email protected] npm error node_modules/@nestjs/mongoose npm error @nestjs/mongoose@"7.2.4" from the root project npm error npm error Fix the upstream dependency conflict, or retry npm error this command with --force or --legacy-peer-deps npm error to accept an incorrect (and potentially broken) dependency resolution. npm error npm error npm error For a full report see: npm error /Users/qidasheng/.npm/_logs/2024-09-04T16_45_04_318Z-eresolve-report.txt npm error A complete log of this run can be found in: /Users/qidasheng/.npm/_logs/2024-09-04T16_45_04_318Z-debug-0.log

qidasheng369 avatar Sep 04 '24 15:09 qidasheng369