Modern Full-Stack Development with Nest.js, React, TypeScript, and MongoDB: Part 1

Hi, I’ve run the command npm install express-jwt jwks-rsa dotenv and copied the authentication.middleware.ts exactly from the post. But I see the error-

src/common/authentication.middleware.ts:11:5 - error TS2349: This expression is not callable.
  Type 'typeof import("D:/nestJS/blog-backend/node_modules/express-jwt/dist/index")' has no call signatures.

11     jwt({

My resource versions:

"dotenv": "^16.0.1",
"express-jwt": "^7.7.5",
"jwks-rsa": "^2.1.4",

I’ve applied multiple solutions for StackOverFlow and tried jwt-express official website. But no solution yet.

How can I solve it?