Downgrade the @types/express package- npm i -D @types/express@4 The problem occurs mainly for the latest version.