Typescript error TS2693: 'Promise' only refers to a type, but is being used as a value here

Problem :

Error transpiling ts file:

error TS2693: 'Promise' only refers to a type, but is being used as a value here.

Solution:

npm i --save-dev  @types/es6-promise  

https://stackoverflow.com/a/46136337

你可能感兴趣的:(Typescript error TS2693: 'Promise' only refers to a type, but is being used as a value here)