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

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

Open
saadabdurrazaq opened this issue Jun 21, 2024 · 0 comments
Open

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

saadabdurrazaq opened this issue Jun 21, 2024 · 0 comments

Comments

@saadabdurrazaq
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant