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

TSError: Call target does not contain any signatures #6

Closed
cdiaz opened this issue May 7, 2018 · 4 comments
Closed

TSError: Call target does not contain any signatures #6

cdiaz opened this issue May 7, 2018 · 4 comments

Comments

@cdiaz
Copy link

cdiaz commented May 7, 2018

Current Behavior

TSError: ⨯ Unable to compile TypeScript src/auth/jwt.strategy.ts (10,5): Call target does not contain any signatures. (2346)

src/auth/jwt.strategy.ts super() constructor extending from PassportStrategy does not contain any signatures:

export class JwtStrategy extends PassportStrategy(Strategy) {
  constructor(private readonly authService: AuthService) {
    super({
      jwtFromRequest: ExtractJwt.fromAuthHeaderAsBearerToken(),
      secretOrKey: 'secretKey',
    });
  }

Environment


Nest version: 5.0.0-rc.3
@nestjs/passport: v1.0.9
TypeScript: 2.8.3

 
For Tooling issues:
- Node version: 10.0.0
- Platform:  Linux
@kamilmysliwiec
Copy link
Member

Fixed in v1.0.10. Lemme know if you face any issues

@cdiaz
Copy link
Author

cdiaz commented May 7, 2018

This issue has been fixed, Thanks

@KedzierskiDawid
Copy link

Hi guys, I have exactly the same issue when I'm trying to debug example 19-auth from official samples even with @nestjs/passport in 1.0.10 version. Could you look at this, please?

Environment

Nest version: 5.0.1
@nestjs/passport: 1.0.10
TypeScript: 2.8.1

Node version: 9.8.0
Platform: Windows

@kamilmysliwiec
Copy link
Member

@KedzierskiDawid let's try 1.0.11 and lemme know if you face any issue

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

3 participants