79304185

Date: 2024-12-23 20:54:11
Score: 0.5
Natty:
Report link

What's wrong?

Looking at your package.json, you're using Express version 4, but you have the @types/express for Express 5. These won't match up.

       "express": "^4.21.2",
        "@types/express": "^5.0.0",

How to fix it?

In your devDependencies, change this line:

"@types/express": "^5.0.0",

to this

"@types/express": "^4.17.21",

and then reinstall your packages (npm install or yarn install).


How did this happen?

Express v5 is in next, so when you do npm install express, you get v4, but DefinitelyTyped (where the @types/* come from) has v5 published as latest, so when you do npm install @types/express, you get v5. That means on fresh projects, you'll have to be specific until either Express5 gets fully released or DefinitelyTyped updates their npm tags.

Reasons:
  • RegEx Blacklisted phrase (1.5): How to fix it?
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): What's
  • High reputation (-1):
Posted by: Dan Crews