wppconnect-team / wppconnect-server

Wppconnect Server is a ready-to-use API, just download, install, and start using, simple as that.
https://wppconnect.io/swagger/wppconnect-server/
Apache License 2.0
687 stars 402 forks source link

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

Open david-labib opened 3 days ago

david-labib commented 3 days ago

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

ayslanh commented 1 day ago

the same error happens to me

ayslanh commented 17 hours ago

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/server@2.8.1 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 ❯