If you import express, you would import as below.
import * as Express from'express';
But if you add the below to tsconfig.json file…
{
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
}
}
You can import like this.
import Express from'express'