Skip to content

Problem in src/api/middlewares/LogMiddleware.ts #268

Open
@saadabdurrazaq

Description

@saadabdurrazaq

src/api/middlewares/LogMiddleware.ts:47:1
ERROR: 47:1 no-consecutive-blank-lines Consecutive blank lines are forbidden

(node:13636) [DEP0128] DeprecationWarning: Invalid 'main' field in 'C:\dev\reference\express-ts\express-typescript-boilerplate\node_modules\swagger-ui-express\package.json' of './lib/index.js'. Please either fix that or report it to the module author
(Use node --trace-deprecation ... to show where the warning was created)
error: [app] Application is crashed: TSError: ⨯ Unable to compile TypeScript:
src/api/middlewares/SecurityHstsMiddleware.ts:12:12 - error TS2345: Argument of type 'Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>' is not assignable to parameter of type 'Request'.
Property 'clearCookie' is missing in type 'Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>' but required in type 'Request'.

12 })(req, res, next);
~~~

node_modules/@types/express-serve-static-core/index.d.ts:437:5
437 clearCookie(name: string, options?: any): Response;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
'clearCookie' is declared here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions