Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FATAL Error while using the included docker-compose.yml file #2091

Open
david-labib opened this issue Dec 2, 2024 · 3 comments
Open

FATAL Error while using the included docker-compose.yml file #2091

david-labib opened this issue Dec 2, 2024 · 3 comments
Labels
bug Something isn't working needs triage

Comments

@david-labib
Copy link

david-labib commented Dec 2, 2024

error while trying to build the exact last release

just download the release then run docker compose up -d

8.538 src/routes/index.ts(120,3): error TS2769: No overload matches this call.
8.538 The last overload gave the following error.
8.538 Argument of type 'RequestHandler<ParamsDictionary, any, any, ParsedQs, Record<string, any>>' is not assignable to parameter of type 'RequestHandlerParams<ParamsDictionary, any, any, ParsedQs, Record<string, any>>'.
8.538 Type 'import("/usr/src/wpp-server/node_modules/@types/multer/node_modules/@types/express/index").RequestHandler<import("/usr/src/wpp-server/node_modules/@types/multer/node_modules/@types/express-serve-static-core/index").ParamsDictionary, any, any, qs.ParsedQs, Record<string, any>>' is not assignable to type 'import("/usr/src/wpp-server/node_modules/@types/express-serve-static-core/index").RequestHandler<import("/usr/src/wpp-server/node_modules/@types/express-serve-static-core/index").ParamsDictionary, any, any, qs.ParsedQs, Record<string, any>>'.
8.538 Types of parameters 'req' and 'req' are incompatible.
8.538 Type 'import("/usr/src/wpp-server/node_modules/@types/express-serve-static-core/index").Request<import("/usr/src/wpp-server/node_modules/@types/express-serve-static-core/index").ParamsDictionary, any, any, qs.ParsedQs, Record<string, any>>' is not assignable to type 'import("/usr/src/wpp-server/node_modules/@types/multer/node_modules/@types/express-serve-static-core/index").Request<import("/usr/src/wpp-server/node_modules/@types/multer/node_modules/@types/express-serve-static-core/index").ParamsDictionary, any, any, qs.ParsedQs, Record<string, any>>'.
8.538 The types of 'app.get' are incompatible between these types.
8.538 Type '((name: string) => any) & import("/usr/src/wpp-server/node_modules/@types/express-serve-static-core/index").IRouterMatcher<import("/usr/src/wpp-server/node_modules/@types/express-serve-static-core/index").Application<Record<string, any>>, any>' is not assignable to type '((name: string) => any) & import("/usr/src/wpp-server/node_modules/@types/multer/node_modules/@types/express-serve-static-core/index").IRouterMatcher<import("/usr/src/wpp-server/node_modules/@types/multer/node_modules/@types/express-serve-static-core/index").Application<Record<string, any>>, any>'.
8.538 Type '((name: string) => any) & IRouterMatcher<Application<Record<string, any>>, any>' is not assignable to type 'IRouterMatcher<Application<Record<string, any>>, any>'.
8.538 Types of parameters 'name' and 'path' are incompatible.
8.538 Type 'PathParams' is not assignable to type 'string'.
8.538 Type 'RegExp' is not assignable to type 'string'.
8.539 src/routes/index.ts(127,3): error TS2769: No overload matches this call.
8.539 The last overload gave the following error.
8.539 Argument of type 'RequestHandler<ParamsDictionary, any, any, ParsedQs, Record<string, any>>' is not assignable to parameter of type 'RequestHandlerParams<ParamsDictionary, any, any, ParsedQs, Record<string, any>>'.
8.539 Type 'import("/usr/src/wpp-server/node_modules/@types/multer/node_modules/@types/express/index").RequestHandler<import("/usr/src/wpp-server/node_modules/@types/multer/node_modules/@types/express-serve-static-core/index").ParamsDictionary, any, any, qs.ParsedQs, Record<string, any>>' is not assignable to type 'import("/usr/src/wpp-server/node_modules/@types/express-serve-static-core/index").RequestHandler<import("/usr/src/wpp-server/node_modules/@types/express-serve-static-core/index").ParamsDictionary, any, any, qs.ParsedQs, Record<string, any>>'.
8.539 Types of parameters 'req' and 'req' are incompatible.
8.539 Type 'import("/usr/src/wpp-server/node_modules/@types/express-serve-static-core/index").Request<import("/usr/src/wpp-server/node_modules/@types/express-serve-static-core/index").ParamsDictionary, any, any, qs.ParsedQs, Record<string, any>>' is not assignable to type 'import("/usr/src/wpp-server/node_modules/@types/multer/node_modules/@types/express-serve-static-core/index").Request<import("/usr/src/wpp-server/node_modules/@types/multer/node_modules/@types/express-serve-static-core/index").ParamsDictionary, any, any, qs.ParsedQs, Record<string, any>>'.
8.539 The types of 'app.get' are incompatible between these types.
8.539 Type '((name: string) => any) & import("/usr/src/wpp-server/node_modules/@types/express-serve-static-core/index").IRouterMatcher<import("/usr/src/wpp-server/node_modules/@types/express-serve-static-core/index").Application<Record<string, any>>, any>' is not assignable to type '((name: string) => any) & import("/usr/src/wpp-server/node_modules/@types/multer/node_modules/@types/express-serve-static-core/index").IRouterMatcher<import("/usr/src/wpp-server/node_modules/@types/multer/node_modules/@types/express-serve-static-core/index").Application<Record<string, any>>, any>'.
8.539 Type '((name: string) => any) & IRouterMatcher<Application<Record<string, any>>, any>' is not assignable to type 'IRouterMatcher<Application<Record<string, any>>, any>'.
8.539 Types of parameters 'name' and 'path' are incompatible.
8.539 Type 'PathParams' is not assignable to type 'string'.
8.539 Type 'RegExp' is not assignable to type 'string'.
8.539 src/routes/index.ts(134,3): error TS2769: No overload matches this call.
8.539 The last overload gave the following error.
8.539 Argument of type 'RequestHandler<ParamsDictionary, any, any, ParsedQs, Record<string, any>>' is not assignable to parameter of type 'RequestHandlerParams<ParamsDictionary, any, any, ParsedQs, Record<string, any>>'.
8.539 Type 'import("/usr/src/wpp-server/node_modules/@types/multer/node_modules/@types/express/index").RequestHandler<import("/usr/src/wpp-server/node_modules/@types/multer/node_modules/@types/express-serve-static-core/index").ParamsDictionary, any, any, qs.ParsedQs, Record<string, any>>' is not assignable to type 'import("/usr/src/wpp-server/node_modules/@types/express-serve-static-core/index").RequestHandler<import("/usr/src/wpp-server/node_modules/@types/express-serve-static-core/index").ParamsDictionary, any, any, qs.ParsedQs, Record<string, any>>'.
8.539 Types of parameters 'req' and 'req' are incompatible.
8.539 Type 'import("/usr/src/wpp-server/node_modules/@types/express-serve-static-core/index").Request<import("/usr/src/wpp-server/node_modules/@types/express-serve-static-core/index").ParamsDictionary, any, any, qs.ParsedQs, Record<string, any>>' is not assignable to type 'import("/usr/src/wpp-server/node_modules/@types/multer/node_modules/@types/express-serve-static-core/index").Request<import("/usr/src/wpp-server/node_modules/@types/multer/node_modules/@types/express-serve-static-core/index").ParamsDictionary, any, any, qs.ParsedQs, Record<string, any>>'.
8.539 The types of 'app.get' are incompatible between these types.
8.539 Type '((name: string) => any) & import("/usr/src/wpp-server/node_modules/@types/express-serve-static-core/index").IRouterMatcher<import("/usr/src/wpp-server/node_modules/@types/express-serve-static-core/index").Application<Record<string, any>>, any>' is not assignable to type '((name: string) => any) & import("/usr/src/wpp-server/node_modules/@types/multer/node_modules/@types/express-serve-static-core/index").IRouterMatcher<import("/usr/src/wpp-server/node_modules/@types/multer/node_modules/@types/express-serve-static-core/index").Application<Record<string, any>>, any>'.
8.539 Type '((name: string) => any) & IRouterMatcher<Application<Record<string, any>>, any>' is not assignable to type 'IRouterMatcher<Application<Record<string, any>>, any>'.
8.539 Types of parameters 'name' and 'path' are incompatible.
8.539 Type 'PathParams' is not assignable to type 'string'.
8.539 Type 'RegExp' is not assignable to type 'string'.
8.539 src/routes/index.ts(147,3): error TS2769: No overload matches this call.
8.539 The last overload gave the following error.
8.539 Argument of type 'RequestHandler<ParamsDictionary, any, any, ParsedQs, Record<string, any>>' is not assignable to parameter of type 'RequestHandlerParams<ParamsDictionary, any, any, ParsedQs, Record<string, any>>'.
8.539 Type 'import("/usr/src/wpp-server/node_modules/@types/multer/node_modules/@types/express/index").RequestHandler<import("/usr/src/wpp-server/node_modules/@types/multer/node_modules/@types/express-serve-static-core/index").ParamsDictionary, any, any, qs.ParsedQs, Record<string, any>>' is not assignable to type 'import("/usr/src/wpp-server/node_modules/@types/express-serve-static-core/index").RequestHandler<import("/usr/src/wpp-server/node_modules/@types/express-serve-static-core/index").ParamsDictionary, any, any, qs.ParsedQs, Record<string, any>>'.
8.539 Types of parameters 'req' and 'req' are incompatible.
8.539 Type 'import("/usr/src/wpp-server/node_modules/@types/express-serve-static-core/index").Request<import("/usr/src/wpp-server/node_modules/@types/express-serve-static-core/index").ParamsDictionary, any, any, qs.ParsedQs, Record<string, any>>' is not assignable to type 'import("/usr/src/wpp-server/node_modules/@types/multer/node_modules/@types/express-serve-static-core/index").Request<import("/usr/src/wpp-server/node_modules/@types/multer/node_modules/@types/express-serve-static-core/index").ParamsDictionary, any, any, qs.ParsedQs, Record<string, any>>'.
8.539 The types of 'app.get' are incompatible between these types.
8.539 Type '((name: string) => any) & import("/usr/src/wpp-server/node_modules/@types/express-serve-static-core/index").IRouterMatcher<import("/usr/src/wpp-server/node_modules/@types/express-serve-static-core/index").Application<Record<string, any>>, any>' is not assignable to type '((name: string) => any) & import("/usr/src/wpp-server/node_modules/@types/multer/node_modules/@types/express-serve-static-core/index").IRouterMatcher<import("/usr/src/wpp-server/node_modules/@types/multer/node_modules/@types/express-serve-static-core/index").Application<Record<string, any>>, any>'.
8.539 Type '((name: string) => any) & IRouterMatcher<Application<Record<string, any>>, any>' is not assignable to type 'IRouterMatcher<Application<Record<string, any>>, any>'.
8.539 Types of parameters 'name' and 'path' are incompatible.
8.539 Type 'PathParams' is not assignable to type 'string'.
8.539 Type 'RegExp' is not assignable to type 'string'.
8.539 src/routes/index.ts(347,3): error TS2769: No overload matches this call.
8.539 The last overload gave the following error.
8.539 Argument of type 'RequestHandler<ParamsDictionary, any, any, ParsedQs, Record<string, any>>' is not assignable to parameter of type 'RequestHandlerParams<ParamsDictionary, any, any, ParsedQs, Record<string, any>>'.
8.539 Type 'import("/usr/src/wpp-server/node_modules/@types/multer/node_modules/@types/express/index").RequestHandler<import("/usr/src/wpp-server/node_modules/@types/multer/node_modules/@types/express-serve-static-core/index").ParamsDictionary, any, any, qs.ParsedQs, Record<string, any>>' is not assignable to type 'import("/usr/src/wpp-server/node_modules/@types/express-serve-static-core/index").RequestHandler<import("/usr/src/wpp-server/node_modules/@types/express-serve-static-core/index").ParamsDictionary, any, any, qs.ParsedQs, Record<string, any>>'.
8.539 Types of parameters 'req' and 'req' are incompatible.
8.539 Type 'import("/usr/src/wpp-server/node_modules/@types/express-serve-static-core/index").Request<import("/usr/src/wpp-server/node_modules/@types/express-serve-static-core/index").ParamsDictionary, any, any, qs.ParsedQs, Record<string, any>>' is not assignable to type 'import("/usr/src/wpp-server/node_modules/@types/multer/node_modules/@types/express-serve-static-core/index").Request<import("/usr/src/wpp-server/node_modules/@types/multer/node_modules/@types/express-serve-static-core/index").ParamsDictionary, any, any, qs.ParsedQs, Record<string, any>>'.
8.539 The types of 'app.get' are incompatible between these types.
8.539 Type '((name: string) => any) & import("/usr/src/wpp-server/node_modules/@types/express-serve-static-core/index").IRouterMatcher<import("/usr/src/wpp-server/node_modules/@types/express-serve-static-core/index").Application<Record<string, any>>, any>' is not assignable to type '((name: string) => any) & import("/usr/src/wpp-server/node_modules/@types/multer/node_modules/@types/express-serve-static-core/index").IRouterMatcher<import("/usr/src/wpp-server/node_modules/@types/multer/node_modules/@types/express-serve-static-core/index").Application<Record<string, any>>, any>'.
8.539 Type '((name: string) => any) & IRouterMatcher<Application<Record<string, any>>, any>' is not assignable to type 'IRouterMatcher<Application<Record<string, any>>, any>'.
8.539 Types of parameters 'name' and 'path' are incompatible.
8.539 Type 'PathParams' is not assignable to type 'string'.
8.539 Type 'RegExp' is not assignable to type 'string'.
8.539 src/routes/index.ts(686,3): error TS2769: No overload matches this call.
8.539 The last overload gave the following error.
8.539 Argument of type 'RequestHandler<ParamsDictionary, any, any, ParsedQs, Record<string, any>>' is not assignable to parameter of type 'RequestHandlerParams<ParamsDictionary, any, any, ParsedQs, Record<string, any>>'.
8.539 Type 'import("/usr/src/wpp-server/node_modules/@types/multer/node_modules/@types/express/index").RequestHandler<import("/usr/src/wpp-server/node_modules/@types/multer/node_modules/@types/express-serve-static-core/index").ParamsDictionary, any, any, qs.ParsedQs, Record<string, any>>' is not assignable to type 'import("/usr/src/wpp-server/node_modules/@types/express-serve-static-core/index").RequestHandler<import("/usr/src/wpp-server/node_modules/@types/express-serve-static-core/index").ParamsDictionary, any, any, qs.ParsedQs, Record<string, any>>'.
8.539 Types of parameters 'req' and 'req' are incompatible.
8.539 Type 'import("/usr/src/wpp-server/node_modules/@types/express-serve-static-core/index").Request<import("/usr/src/wpp-server/node_modules/@types/express-serve-static-core/index").ParamsDictionary, any, any, qs.ParsedQs, Record<string, any>>' is not assignable to type 'import("/usr/src/wpp-server/node_modules/@types/multer/node_modules/@types/express-serve-static-core/index").Request<import("/usr/src/wpp-server/node_modules/@types/multer/node_modules/@types/express-serve-static-core/index").ParamsDictionary, any, any, qs.ParsedQs, Record<string, any>>'.
8.539 The types of 'app.get' are incompatible between these types.
8.539 Type '((name: string) => any) & import("/usr/src/wpp-server/node_modules/@types/express-serve-static-core/index").IRouterMatcher<import("/usr/src/wpp-server/node_modules/@types/express-serve-static-core/index").Application<Record<string, any>>, any>' is not assignable to type '((name: string) => any) & import("/usr/src/wpp-server/node_modules/@types/multer/node_modules/@types/express-serve-static-core/index").IRouterMatcher<import("/usr/src/wpp-server/node_modules/@types/multer/node_modules/@types/express-serve-static-core/index").Application<Record<string, any>>, any>'.
8.539 Type '((name: string) => any) & IRouterMatcher<Application<Record<string, any>>, any>' is not assignable to type 'IRouterMatcher<Application<Record<string, any>>, any>'.
8.539 Types of parameters 'name' and 'path' are incompatible.
8.539 Type 'PathParams' is not assignable to type 'string'.
8.539 Type 'RegExp' is not assignable to type 'string'.
8.539 src/routes/index.ts(693,3): error TS2769: No overload matches this call.
8.539 The last overload gave the following error.
8.539 Argument of type 'RequestHandler<ParamsDictionary, any, any, ParsedQs, Record<string, any>>' is not assignable to parameter of type 'RequestHandlerParams<ParamsDictionary, any, any, ParsedQs, Record<string, any>>'.
8.539 Type 'import("/usr/src/wpp-server/node_modules/@types/multer/node_modules/@types/express/index").RequestHandler<import("/usr/src/wpp-server/node_modules/@types/multer/node_modules/@types/express-serve-static-core/index").ParamsDictionary, any, any, qs.ParsedQs, Record<string, any>>' is not assignable to type 'import("/usr/src/wpp-server/node_modules/@types/express-serve-static-core/index").RequestHandler<import("/usr/src/wpp-server/node_modules/@types/express-serve-static-core/index").ParamsDictionary, any, any, qs.ParsedQs, Record<string, any>>'.
8.539 Types of parameters 'req' and 'req' are incompatible.
8.539 Type 'import("/usr/src/wpp-server/node_modules/@types/express-serve-static-core/index").Request<import("/usr/src/wpp-server/node_modules/@types/express-serve-static-core/index").ParamsDictionary, any, any, qs.ParsedQs, Record<string, any>>' is not assignable to type 'import("/usr/src/wpp-server/node_modules/@types/multer/node_modules/@types/express-serve-static-core/index").Request<import("/usr/src/wpp-server/node_modules/@types/multer/node_modules/@types/express-serve-static-core/index").ParamsDictionary, any, any, qs.ParsedQs, Record<string, any>>'.
8.539 The types of 'app.get' are incompatible between these types.
8.539 Type '((name: string) => any) & import("/usr/src/wpp-server/node_modules/@types/express-serve-static-core/index").IRouterMatcher<import("/usr/src/wpp-server/node_modules/@types/express-serve-static-core/index").Application<Record<string, any>>, any>' is not assignable to type '((name: string) => any) & import("/usr/src/wpp-server/node_modules/@types/multer/node_modules/@types/express-serve-static-core/index").IRouterMatcher<import("/usr/src/wpp-server/node_modules/@types/multer/node_modules/@types/express-serve-static-core/index").Application<Record<string, any>>, any>'.
8.539 Type '((name: string) => any) & IRouterMatcher<Application<Record<string, any>>, any>' is not assignable to type 'IRouterMatcher<Application<Record<string, any>>, any>'.
8.539 Types of parameters 'name' and 'path' are incompatible.
8.539 Type 'PathParams' is not assignable to type 'string'.
8.539 Type 'RegExp' is not assignable to type 'string'.
8.539 src/routes/index.ts(812,3): error TS2769: No overload matches this call.
8.539 The last overload gave the following error.
8.539 Argument of type 'RequestHandler<ParamsDictionary, any, any, ParsedQs, Record<string, any>>' is not assignable to parameter of type 'RequestHandlerParams<ParamsDictionary, any, any, ParsedQs, Record<string, any>>'.
8.539 Type 'import("/usr/src/wpp-server/node_modules/@types/multer/node_modules/@types/express/index").RequestHandler<import("/usr/src/wpp-server/node_modules/@types/multer/node_modules/@types/express-serve-static-core/index").ParamsDictionary, any, any, qs.ParsedQs, Record<string, any>>' is not assignable to type 'import("/usr/src/wpp-server/node_modules/@types/express-serve-static-core/index").RequestHandler<import("/usr/src/wpp-server/node_modules/@types/express-serve-static-core/index").ParamsDictionary, any, any, qs.ParsedQs, Record<string, any>>'.
8.539 Types of parameters 'req' and 'req' are incompatible.
8.539 Type 'import("/usr/src/wpp-server/node_modules/@types/express-serve-static-core/index").Request<import("/usr/src/wpp-server/node_modules/@types/express-serve-static-core/index").ParamsDictionary, any, any, qs.ParsedQs, Record<string, any>>' is not assignable to type 'import("/usr/src/wpp-server/node_modules/@types/multer/node_modules/@types/express-serve-static-core/index").Request<import("/usr/src/wpp-server/node_modules/@types/multer/node_modules/@types/express-serve-static-core/index").ParamsDictionary, any, any, qs.ParsedQs, Record<string, any>>'.
8.539 The types of 'app.get' are incompatible between these types.
8.539 Type '((name: string) => any) & import("/usr/src/wpp-server/node_modules/@types/express-serve-static-core/index").IRouterMatcher<import("/usr/src/wpp-server/node_modules/@types/express-serve-static-core/index").Application<Record<string, any>>, any>' is not assignable to type '((name: string) => any) & import("/usr/src/wpp-server/node_modules/@types/multer/node_modules/@types/express-serve-static-core/index").IRouterMatcher<import("/usr/src/wpp-server/node_modules/@types/multer/node_modules/@types/express-serve-static-core/index").Application<Record<string, any>>, any>'.
8.539 Type '((name: string) => any) & IRouterMatcher<Application<Record<string, any>>, any>' is not assignable to type 'IRouterMatcher<Application<Record<string, any>>, any>'.
8.539 Types of parameters 'name' and 'path' are incompatible.
8.539 Type 'PathParams' is not assignable to type 'string'.
8.539 Type 'RegExp' is not assignable to type 'string'.
8.539 src/routes/index.ts(852,3): error TS2769: No overload matches this call.
8.539 The last overload gave the following error.
8.539 Argument of type 'RequestHandler<ParamsDictionary, any, any, ParsedQs, Record<string, any>>' is not assignable to parameter of type 'RequestHandlerParams<ParamsDictionary, any, any, ParsedQs, Record<string, any>>'.
8.539 Type 'import("/usr/src/wpp-server/node_modules/@types/multer/node_modules/@types/express/index").RequestHandler<import("/usr/src/wpp-server/node_modules/@types/multer/node_modules/@types/express-serve-static-core/index").ParamsDictionary, any, any, qs.ParsedQs, Record<string, any>>' is not assignable to type 'import("/usr/src/wpp-server/node_modules/@types/express-serve-static-core/index").RequestHandler<import("/usr/src/wpp-server/node_modules/@types/express-serve-static-core/index").ParamsDictionary, any, any, qs.ParsedQs, Record<string, any>>'.
8.539 Types of parameters 'req' and 'req' are incompatible.
8.539 Type 'import("/usr/src/wpp-server/node_modules/@types/express-serve-static-core/index").Request<import("/usr/src/wpp-server/node_modules/@types/express-serve-static-core/index").ParamsDictionary, any, any, qs.ParsedQs, Record<string, any>>' is not assignable to type 'import("/usr/src/wpp-server/node_modules/@types/multer/node_modules/@types/express-serve-static-core/index").Request<import("/usr/src/wpp-server/node_modules/@types/multer/node_modules/@types/express-serve-static-core/index").ParamsDictionary, any, any, qs.ParsedQs, Record<string, any>>'.
8.539 The types of 'app.get' are incompatible between these types.
8.539 Type '((name: string) => any) & import("/usr/src/wpp-server/node_modules/@types/express-serve-static-core/index").IRouterMatcher<import("/usr/src/wpp-server/node_modules/@types/express-serve-static-core/index").Application<Record<string, any>>, any>' is not assignable to type '((name: string) => any) & import("/usr/src/wpp-server/node_modules/@types/multer/node_modules/@types/express-serve-static-core/index").IRouterMatcher<import("/usr/src/wpp-server/node_modules/@types/multer/node_modules/@types/express-serve-static-core/index").Application<Record<string, any>>, any>'.
8.539 Type '((name: string) => any) & IRouterMatcher<Application<Record<string, any>>, any>' is not assignable to type 'IRouterMatcher<Application<Record<string, any>>, any>'.
8.539 Types of parameters 'name' and 'path' are incompatible.
8.539 Type 'PathParams' is not assignable to type 'string'.
8.539 Type 'RegExp' is not assignable to type 'string'.
8.540 src/routes/index.ts(935,25): error TS2769: No overload matches this call.
8.540 The last overload gave the following error.
8.540 Argument of type 'RequestHandler<ParamsDictionary, any, any, ParsedQs, Record<string, any>>[]' is not assignable to parameter of type 'Application<Record<string, any>>'.
8.540 Type 'RequestHandler<ParamsDictionary, any, any, ParsedQs, Record<string, any>>[]' is missing the following properties from type 'Application<Record<string, any>>': init, defaultConfiguration, engine, set, and 62 more.
8.540 src/routes/index.ts(936,25): error TS2769: No overload matches this call.
8.540 The last overload gave the following error.
8.540 Argument of type 'RequestHandler<ParamsDictionary, any, any, ParsedQs, Record<string, any>>' is not assignable to parameter of type 'Application<Record<string, any>>'.
8.540 Type 'RequestHandler<ParamsDictionary, any, any, ParsedQs, Record<string, any>>' is missing the following properties from type 'Application<Record<string, any>>': init, defaultConfiguration, engine, set, and 63 more.
8.606 info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
8.606 error Command failed with exit code 1.

failed to solve: process "/bin/sh -c yarn build" did not complete successfully: exit code: 1
root@srv1:/app/wppconnect-server-2.8.0# gument of type 'RequestHandler<ParamsDictionary, any, any, ParsedQs, Record<string, any>>' is not assignable to parameter of type 'RequestHandlerParams<ParamsDictionary, any, any, ParsedQs, Record<string, any>>'.
gument: command not found

@david-labib david-labib added bug Something isn't working needs triage labels Dec 2, 2024
@ayslanh
Copy link

ayslanh commented Dec 4, 2024

the same error happens to me

@david-labib david-labib changed the title Error while using the included docker-compose.yml file FATAL Error while using the included docker-compose.yml file Dec 4, 2024
@ayslanh
Copy link

ayslanh commented Dec 5, 2024

ayslansiqueira in wppconnect-server on  main [!]
❯ yarn build
yarn run v1.22.22
warning ../../../../package.json: No license field
$ npm run build:types && npm run build:js

@wppconnect/[email protected] build:types
tsc

src/routes/index.ts:120:3 - error TS2769: No overload matches this call.
The last overload gave the following error.
Argument of type 'RequestHandler<ParamsDictionary, any, any, ParsedQs, Record<string, any>>' is not assignable to parameter of type 'RequestHandlerParams<ParamsDictionary, any, any, ParsedQs, Record<string, any>>'.
Type 'import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/multer/node_modules/@types/express/index").RequestHandler<import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/multer/node_modules/@types/express-serve-static-core/index").ParamsDict...' is not assignable to type 'import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/express-serve-static-core/index").RequestHandler<import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/express-serve-static-core/index").ParamsDictionary, any, any, qs.ParsedQs, Recor...'.
Types of parameters 'req' and 'req' are incompatible.
Type 'import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/express-serve-static-core/index").Request<import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/express-serve-static-core/index").ParamsDictionary, any, any, qs.ParsedQs, Record<...>>' is not assignable to type 'import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/multer/node_modules/@types/express-serve-static-core/index").Request<import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/multer/node_modules/@types/express-serve-static-core/index")...'.
The types of 'app.get' are incompatible between these types.
Type '((name: string) => any) & import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/express-serve-static-core/index").IRouterMatcher<import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/express-serve-static-core/index").Application<Record<s...' is not assignable to type '((name: string) => any) & import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/multer/node_modules/@types/express-serve-static-core/index").IRouterMatcher<import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/multer/node_modules/@types/...'.
Type '((name: string) => any) & IRouterMatcher<Application<Record<string, any>>, any>' is not assignable to type 'IRouterMatcher<Application<Record<string, any>>, any>'.
Types of parameters 'name' and 'path' are incompatible.
Type 'PathParams' is not assignable to type 'string'.
Type 'RegExp' is not assignable to type 'string'.

120 upload.single('file'),
~~~~~~~~~~~~~~~~~~~~~

node_modules/@types/express-serve-static-core/index.d.ts:153:5
153 <
~
154 P = ParamsDictionary,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
162 ...handlers: Array<RequestHandlerParams<P, ResBody, ReqBody, ReqQuery, LocalsObj>>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
163 ): T;
~~~~~~~~~
The last overload is declared here.

src/routes/index.ts:127:3 - error TS2769: No overload matches this call.
The last overload gave the following error.
Argument of type 'RequestHandler<ParamsDictionary, any, any, ParsedQs, Record<string, any>>' is not assignable to parameter of type 'RequestHandlerParams<ParamsDictionary, any, any, ParsedQs, Record<string, any>>'.
Type 'import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/multer/node_modules/@types/express/index").RequestHandler<import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/multer/node_modules/@types/express-serve-static-core/index").ParamsDict...' is not assignable to type 'import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/express-serve-static-core/index").RequestHandler<import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/express-serve-static-core/index").ParamsDictionary, any, any, qs.ParsedQs, Recor...'.
Types of parameters 'req' and 'req' are incompatible.
Type 'import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/express-serve-static-core/index").Request<import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/express-serve-static-core/index").ParamsDictionary, any, any, qs.ParsedQs, Record<...>>' is not assignable to type 'import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/multer/node_modules/@types/express-serve-static-core/index").Request<import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/multer/node_modules/@types/express-serve-static-core/index")...'.
The types of 'app.get' are incompatible between these types.
Type '((name: string) => any) & import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/express-serve-static-core/index").IRouterMatcher<import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/express-serve-static-core/index").Application<Record<s...' is not assignable to type '((name: string) => any) & import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/multer/node_modules/@types/express-serve-static-core/index").IRouterMatcher<import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/multer/node_modules/@types/...'.
Type '((name: string) => any) & IRouterMatcher<Application<Record<string, any>>, any>' is not assignable to type 'IRouterMatcher<Application<Record<string, any>>, any>'.
Types of parameters 'name' and 'path' are incompatible.
Type 'PathParams' is not assignable to type 'string'.
Type 'RegExp' is not assignable to type 'string'.

127 upload.single('file'),
~~~~~~~~~~~~~~~~~~~~~

node_modules/@types/express-serve-static-core/index.d.ts:153:5
153 <
~
154 P = ParamsDictionary,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
162 ...handlers: Array<RequestHandlerParams<P, ResBody, ReqBody, ReqQuery, LocalsObj>>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
163 ): T;
~~~~~~~~~
The last overload is declared here.

src/routes/index.ts:134:3 - error TS2769: No overload matches this call.
The last overload gave the following error.
Argument of type 'RequestHandler<ParamsDictionary, any, any, ParsedQs, Record<string, any>>' is not assignable to parameter of type 'RequestHandlerParams<ParamsDictionary, any, any, ParsedQs, Record<string, any>>'.
Type 'import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/multer/node_modules/@types/express/index").RequestHandler<import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/multer/node_modules/@types/express-serve-static-core/index").ParamsDict...' is not assignable to type 'import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/express-serve-static-core/index").RequestHandler<import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/express-serve-static-core/index").ParamsDictionary, any, any, qs.ParsedQs, Recor...'.
Types of parameters 'req' and 'req' are incompatible.
Type 'import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/express-serve-static-core/index").Request<import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/express-serve-static-core/index").ParamsDictionary, any, any, qs.ParsedQs, Record<...>>' is not assignable to type 'import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/multer/node_modules/@types/express-serve-static-core/index").Request<import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/multer/node_modules/@types/express-serve-static-core/index")...'.
The types of 'app.get' are incompatible between these types.
Type '((name: string) => any) & import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/express-serve-static-core/index").IRouterMatcher<import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/express-serve-static-core/index").Application<Record<s...' is not assignable to type '((name: string) => any) & import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/multer/node_modules/@types/express-serve-static-core/index").IRouterMatcher<import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/multer/node_modules/@types/...'.
Type '((name: string) => any) & IRouterMatcher<Application<Record<string, any>>, any>' is not assignable to type 'IRouterMatcher<Application<Record<string, any>>, any>'.
Types of parameters 'name' and 'path' are incompatible.
Type 'PathParams' is not assignable to type 'string'.
Type 'RegExp' is not assignable to type 'string'.

134 upload.single('file'),
~~~~~~~~~~~~~~~~~~~~~

node_modules/@types/express-serve-static-core/index.d.ts:153:5
153 <
~
154 P = ParamsDictionary,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
162 ...handlers: Array<RequestHandlerParams<P, ResBody, ReqBody, ReqQuery, LocalsObj>>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
163 ): T;
~~~~~~~~~
The last overload is declared here.

src/routes/index.ts:147:3 - error TS2769: No overload matches this call.
The last overload gave the following error.
Argument of type 'RequestHandler<ParamsDictionary, any, any, ParsedQs, Record<string, any>>' is not assignable to parameter of type 'RequestHandlerParams<ParamsDictionary, any, any, ParsedQs, Record<string, any>>'.
Type 'import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/multer/node_modules/@types/express/index").RequestHandler<import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/multer/node_modules/@types/express-serve-static-core/index").ParamsDict...' is not assignable to type 'import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/express-serve-static-core/index").RequestHandler<import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/express-serve-static-core/index").ParamsDictionary, any, any, qs.ParsedQs, Recor...'.
Types of parameters 'req' and 'req' are incompatible.
Type 'import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/express-serve-static-core/index").Request<import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/express-serve-static-core/index").ParamsDictionary, any, any, qs.ParsedQs, Record<...>>' is not assignable to type 'import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/multer/node_modules/@types/express-serve-static-core/index").Request<import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/multer/node_modules/@types/express-serve-static-core/index")...'.
The types of 'app.get' are incompatible between these types.
Type '((name: string) => any) & import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/express-serve-static-core/index").IRouterMatcher<import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/express-serve-static-core/index").Application<Record<s...' is not assignable to type '((name: string) => any) & import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/multer/node_modules/@types/express-serve-static-core/index").IRouterMatcher<import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/multer/node_modules/@types/...'.
Type '((name: string) => any) & IRouterMatcher<Application<Record<string, any>>, any>' is not assignable to type 'IRouterMatcher<Application<Record<string, any>>, any>'.
Types of parameters 'name' and 'path' are incompatible.
Type 'PathParams' is not assignable to type 'string'.
Type 'RegExp' is not assignable to type 'string'.

147 upload.single('file'),
~~~~~~~~~~~~~~~~~~~~~

node_modules/@types/express-serve-static-core/index.d.ts:153:5
153 <
~
154 P = ParamsDictionary,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
162 ...handlers: Array<RequestHandlerParams<P, ResBody, ReqBody, ReqQuery, LocalsObj>>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
163 ): T;
~~~~~~~~~
The last overload is declared here.

src/routes/index.ts:347:3 - error TS2769: No overload matches this call.
The last overload gave the following error.
Argument of type 'RequestHandler<ParamsDictionary, any, any, ParsedQs, Record<string, any>>' is not assignable to parameter of type 'RequestHandlerParams<ParamsDictionary, any, any, ParsedQs, Record<string, any>>'.
Type 'import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/multer/node_modules/@types/express/index").RequestHandler<import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/multer/node_modules/@types/express-serve-static-core/index").ParamsDict...' is not assignable to type 'import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/express-serve-static-core/index").RequestHandler<import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/express-serve-static-core/index").ParamsDictionary, any, any, qs.ParsedQs, Recor...'.
Types of parameters 'req' and 'req' are incompatible.
Type 'import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/express-serve-static-core/index").Request<import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/express-serve-static-core/index").ParamsDictionary, any, any, qs.ParsedQs, Record<...>>' is not assignable to type 'import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/multer/node_modules/@types/express-serve-static-core/index").Request<import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/multer/node_modules/@types/express-serve-static-core/index")...'.
The types of 'app.get' are incompatible between these types.
Type '((name: string) => any) & import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/express-serve-static-core/index").IRouterMatcher<import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/express-serve-static-core/index").Application<Record<s...' is not assignable to type '((name: string) => any) & import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/multer/node_modules/@types/express-serve-static-core/index").IRouterMatcher<import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/multer/node_modules/@types/...'.
Type '((name: string) => any) & IRouterMatcher<Application<Record<string, any>>, any>' is not assignable to type 'IRouterMatcher<Application<Record<string, any>>, any>'.
Types of parameters 'name' and 'path' are incompatible.
Type 'PathParams' is not assignable to type 'string'.
Type 'RegExp' is not assignable to type 'string'.

347 upload.single('file'),
~~~~~~~~~~~~~~~~~~~~~

node_modules/@types/express-serve-static-core/index.d.ts:153:5
153 <
~
154 P = ParamsDictionary,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
162 ...handlers: Array<RequestHandlerParams<P, ResBody, ReqBody, ReqQuery, LocalsObj>>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
163 ): T;
~~~~~~~~~
The last overload is declared here.

src/routes/index.ts:686:3 - error TS2769: No overload matches this call.
The last overload gave the following error.
Argument of type 'RequestHandler<ParamsDictionary, any, any, ParsedQs, Record<string, any>>' is not assignable to parameter of type 'RequestHandlerParams<ParamsDictionary, any, any, ParsedQs, Record<string, any>>'.
Type 'import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/multer/node_modules/@types/express/index").RequestHandler<import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/multer/node_modules/@types/express-serve-static-core/index").ParamsDict...' is not assignable to type 'import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/express-serve-static-core/index").RequestHandler<import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/express-serve-static-core/index").ParamsDictionary, any, any, qs.ParsedQs, Recor...'.
Types of parameters 'req' and 'req' are incompatible.
Type 'import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/express-serve-static-core/index").Request<import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/express-serve-static-core/index").ParamsDictionary, any, any, qs.ParsedQs, Record<...>>' is not assignable to type 'import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/multer/node_modules/@types/express-serve-static-core/index").Request<import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/multer/node_modules/@types/express-serve-static-core/index")...'.
The types of 'app.get' are incompatible between these types.
Type '((name: string) => any) & import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/express-serve-static-core/index").IRouterMatcher<import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/express-serve-static-core/index").Application<Record<s...' is not assignable to type '((name: string) => any) & import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/multer/node_modules/@types/express-serve-static-core/index").IRouterMatcher<import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/multer/node_modules/@types/...'.
Type '((name: string) => any) & IRouterMatcher<Application<Record<string, any>>, any>' is not assignable to type 'IRouterMatcher<Application<Record<string, any>>, any>'.
Types of parameters 'name' and 'path' are incompatible.
Type 'PathParams' is not assignable to type 'string'.
Type 'RegExp' is not assignable to type 'string'.

686 upload.single('file'),
~~~~~~~~~~~~~~~~~~~~~

node_modules/@types/express-serve-static-core/index.d.ts:153:5
153 <
~
154 P = ParamsDictionary,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
162 ...handlers: Array<RequestHandlerParams<P, ResBody, ReqBody, ReqQuery, LocalsObj>>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
163 ): T;
~~~~~~~~~
The last overload is declared here.

src/routes/index.ts:693:3 - error TS2769: No overload matches this call.
The last overload gave the following error.
Argument of type 'RequestHandler<ParamsDictionary, any, any, ParsedQs, Record<string, any>>' is not assignable to parameter of type 'RequestHandlerParams<ParamsDictionary, any, any, ParsedQs, Record<string, any>>'.
Type 'import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/multer/node_modules/@types/express/index").RequestHandler<import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/multer/node_modules/@types/express-serve-static-core/index").ParamsDict...' is not assignable to type 'import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/express-serve-static-core/index").RequestHandler<import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/express-serve-static-core/index").ParamsDictionary, any, any, qs.ParsedQs, Recor...'.
Types of parameters 'req' and 'req' are incompatible.
Type 'import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/express-serve-static-core/index").Request<import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/express-serve-static-core/index").ParamsDictionary, any, any, qs.ParsedQs, Record<...>>' is not assignable to type 'import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/multer/node_modules/@types/express-serve-static-core/index").Request<import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/multer/node_modules/@types/express-serve-static-core/index")...'.
The types of 'app.get' are incompatible between these types.
Type '((name: string) => any) & import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/express-serve-static-core/index").IRouterMatcher<import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/express-serve-static-core/index").Application<Record<s...' is not assignable to type '((name: string) => any) & import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/multer/node_modules/@types/express-serve-static-core/index").IRouterMatcher<import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/multer/node_modules/@types/...'.
Type '((name: string) => any) & IRouterMatcher<Application<Record<string, any>>, any>' is not assignable to type 'IRouterMatcher<Application<Record<string, any>>, any>'.
Types of parameters 'name' and 'path' are incompatible.
Type 'PathParams' is not assignable to type 'string'.
Type 'RegExp' is not assignable to type 'string'.

693 upload.single('file'),
~~~~~~~~~~~~~~~~~~~~~

node_modules/@types/express-serve-static-core/index.d.ts:153:5
153 <
~
154 P = ParamsDictionary,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
162 ...handlers: Array<RequestHandlerParams<P, ResBody, ReqBody, ReqQuery, LocalsObj>>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
163 ): T;
~~~~~~~~~
The last overload is declared here.

src/routes/index.ts:812:3 - error TS2769: No overload matches this call.
The last overload gave the following error.
Argument of type 'RequestHandler<ParamsDictionary, any, any, ParsedQs, Record<string, any>>' is not assignable to parameter of type 'RequestHandlerParams<ParamsDictionary, any, any, ParsedQs, Record<string, any>>'.
Type 'import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/multer/node_modules/@types/express/index").RequestHandler<import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/multer/node_modules/@types/express-serve-static-core/index").ParamsDict...' is not assignable to type 'import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/express-serve-static-core/index").RequestHandler<import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/express-serve-static-core/index").ParamsDictionary, any, any, qs.ParsedQs, Recor...'.
Types of parameters 'req' and 'req' are incompatible.
Type 'import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/express-serve-static-core/index").Request<import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/express-serve-static-core/index").ParamsDictionary, any, any, qs.ParsedQs, Record<...>>' is not assignable to type 'import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/multer/node_modules/@types/express-serve-static-core/index").Request<import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/multer/node_modules/@types/express-serve-static-core/index")...'.
The types of 'app.get' are incompatible between these types.
Type '((name: string) => any) & import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/express-serve-static-core/index").IRouterMatcher<import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/express-serve-static-core/index").Application<Record<s...' is not assignable to type '((name: string) => any) & import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/multer/node_modules/@types/express-serve-static-core/index").IRouterMatcher<import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/multer/node_modules/@types/...'.
Type '((name: string) => any) & IRouterMatcher<Application<Record<string, any>>, any>' is not assignable to type 'IRouterMatcher<Application<Record<string, any>>, any>'.
Types of parameters 'name' and 'path' are incompatible.
Type 'PathParams' is not assignable to type 'string'.
Type 'RegExp' is not assignable to type 'string'.

812 upload.single('file'),
~~~~~~~~~~~~~~~~~~~~~

node_modules/@types/express-serve-static-core/index.d.ts:153:5
153 <
~
154 P = ParamsDictionary,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
162 ...handlers: Array<RequestHandlerParams<P, ResBody, ReqBody, ReqQuery, LocalsObj>>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
163 ): T;
~~~~~~~~~
The last overload is declared here.

src/routes/index.ts:852:3 - error TS2769: No overload matches this call.
The last overload gave the following error.
Argument of type 'RequestHandler<ParamsDictionary, any, any, ParsedQs, Record<string, any>>' is not assignable to parameter of type 'RequestHandlerParams<ParamsDictionary, any, any, ParsedQs, Record<string, any>>'.
Type 'import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/multer/node_modules/@types/express/index").RequestHandler<import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/multer/node_modules/@types/express-serve-static-core/index").ParamsDict...' is not assignable to type 'import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/express-serve-static-core/index").RequestHandler<import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/express-serve-static-core/index").ParamsDictionary, any, any, qs.ParsedQs, Recor...'.
Types of parameters 'req' and 'req' are incompatible.
Type 'import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/express-serve-static-core/index").Request<import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/express-serve-static-core/index").ParamsDictionary, any, any, qs.ParsedQs, Record<...>>' is not assignable to type 'import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/multer/node_modules/@types/express-serve-static-core/index").Request<import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/multer/node_modules/@types/express-serve-static-core/index")...'.
The types of 'app.get' are incompatible between these types.
Type '((name: string) => any) & import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/express-serve-static-core/index").IRouterMatcher<import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/express-serve-static-core/index").Application<Record<s...' is not assignable to type '((name: string) => any) & import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/multer/node_modules/@types/express-serve-static-core/index").IRouterMatcher<import("/Users/ayslansiqueira/Documents/projects/astech/wppconnect-server/node_modules/@types/multer/node_modules/@types/...'.
Type '((name: string) => any) & IRouterMatcher<Application<Record<string, any>>, any>' is not assignable to type 'IRouterMatcher<Application<Record<string, any>>, any>'.
Types of parameters 'name' and 'path' are incompatible.
Type 'PathParams' is not assignable to type 'string'.
Type 'RegExp' is not assignable to type 'string'.

852 upload.single('file'),
~~~~~~~~~~~~~~~~~~~~~

node_modules/@types/express-serve-static-core/index.d.ts:153:5
153 <
~
154 P = ParamsDictionary,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
162 ...handlers: Array<RequestHandlerParams<P, ResBody, ReqBody, ReqQuery, LocalsObj>>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
163 ): T;
~~~~~~~~~
The last overload is declared here.

src/routes/index.ts:935:25 - error TS2769: No overload matches this call.
The last overload gave the following error.
Argument of type 'RequestHandler<ParamsDictionary, any, any, ParsedQs, Record<string, any>>[]' is not assignable to parameter of type 'Application<Record<string, any>>'.
Type 'RequestHandler<ParamsDictionary, any, any, ParsedQs, Record<string, any>>[]' is missing the following properties from type 'Application<Record<string, any>>': init, defaultConfiguration, engine, set, and 62 more.

935 routes.use('/api-docs', swaggerUi.serve);
~~~~~~~~~~~~~~~

node_modules/@types/express-serve-static-core/index.d.ts:164:5
164 (path: PathParams, subApplication: Application): T;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The last overload is declared here.

src/routes/index.ts:936:25 - error TS2769: No overload matches this call.
The last overload gave the following error.
Argument of type 'RequestHandler<ParamsDictionary, any, any, ParsedQs, Record<string, any>>' is not assignable to parameter of type 'Application<Record<string, any>>'.
Type 'RequestHandler<ParamsDictionary, any, any, ParsedQs, Record<string, any>>' is missing the following properties from type 'Application<Record<string, any>>': init, defaultConfiguration, engine, set, and 63 more.

936 routes.get('/api-docs', swaggerUi.setup(swaggerDocument));
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/@types/express-serve-static-core/index.d.ts:164:5
164 (path: PathParams, subApplication: Application): T;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The last overload is declared here.

Found 11 errors in the same file, starting at: src/routes/index.ts:120

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
ayslansiqueira in wppconnect-server on  main [!] took 3s

@brunohpg
Copy link

brunohpg commented Dec 5, 2024

Workaround:

change Dockerfile line:
RUN yarn build
to
RUN yarn build:js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage
Projects
None yet
Development

No branches or pull requests

3 participants