Nestjs error TS2349: This expression is not callable. jwt
evographics opened this issue · comments
Description
Following the tutorial https://www.youtube.com/watch?v=JzndSOAb6SQ from scratch, there is an error in the latest version 7.7.2.
Reproduction
- Download the repo https://github.com/Sambego/nestjs-auth0-api
- Run
yarn
to install everything - Run
yarn upgrade --latest
to upgrade all the packages - Run
yarn start:dev
You can see the error lint in VSCode as well in the authorization guard file.
Environment
Please provide the following:
- **Version of this library used:7.7.2
- **Version of the platform or framework used, if applicable: NestJS 8
- **Other relevant versions (language, server software, OS, browser):TypeScript
- **Other modules/plugins/libraries that might be involved:jwks-rsa
Hi there, unfortunately the youtube tutorial is using express-jwt@6. This is what you will need to do in your example to use express-jwt@7:
just express-jwt@6.1.2 work for me
Thank you. @jfromaniello