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

Property 'authenticate' in type 'Strategy' #16

Open
vicentebrida opened this issue Feb 11, 2025 · 0 comments
Open

Property 'authenticate' in type 'Strategy' #16

vicentebrida opened this issue Feb 11, 2025 · 0 comments

Comments

@vicentebrida
Copy link

Hello,

I'm using nestjs for the backend and it gives me this error when trying to start the application. Anyone else having the same problem?

node_modules/passport-headerapikey/lib/Strategy.d.ts:22:5 - error TS2416: Property 'authenticate' in type 'Strategy' is not assignable to the same property in base type 'Strategy'

Complete error:

Property 'authenticate' in type 'Strategy' is not assignable to the same property in base type 'Strategy'.
Type '(req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>, options?: Object) => void' is not assignable to type '(req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>, options?: any) => void'.
Types of parameters 'req' and 'req' are incompatible.
Property 'param' is missing in type 'import("/Users/vicentebrida/dev/tnb/tnb_backend/node_modules/@types/passport/node_modules/@types/express/index").Request<import("/Users/vicentebrida/dev/tnb/tnb_backend/node_modules/@types/passport/node_modules/@types/express-serve-static-core/index").ParamsDictionary, any, any, qs.ParsedQs, Record<...>>' but required in type 'import("/Users/vicentebrida/dev/tnb/tnb_backend/node_modules/@types/express/index").Request<import("/Users/vicentebrida/dev/tnb/tnb_backend/node_modules/@types/express-serve-static-core/index").ParamsDictionary, any, any, qs.ParsedQs, Record<string, any>>'

Image

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