To fix Promise is not recolized in TypeScript, we can choose to use a lib:
npm i @types/es6-promise
we can also use built-in libs:
{ "compilerOptions": { "module": "commonjs", "target": "es5", "noImplicitAny": true, "sourceMap": true, "strictNullChecks": true, "noEmitOnError": true, "experimentalDecorators": true, "emitDecoratorMetadata": true, "lib": ["es6"], "skipLibCheck": true }, "exclude": [ "client/node_modules" ] }
Inside "es6" have Promise already, so that we don‘t need to install other devdependices.