Skip to content Skip to sidebar Skip to footer

Typescript Cannot Find Name 'promise' Despite Using Ecmascript 6

I am currently trying to develop a node.js application in Visual Studio 2015 and it keeps telling me TS2304 Cannot find the name 'Promise' In the project settings I have ECMAScr

Solution 1:

This seems to be an oversight (I had the same issue). You can easily make the problem go away if you install the type definition.d.ts files.

If you are using Nuget, just install from the Package Manager console with:

PM> Install-Package es6-promise.TypeScript.DefinitelyTyped

Post a Comment for "Typescript Cannot Find Name 'promise' Despite Using Ecmascript 6"