0

I set up a basic web application with Angular2 and Typescript. On build of the solution, I get many errors like : TS2304: Cannot find name Promise and these are coming from inside the node_modules folder. Visual Studio 2015 won't take tsconfig.json file into account so I cannot tell it to exclude certain folders either. So, what can I do to make it work other than reverting to using Visual Studio Code instead of Visual Studio 2015?

lbrahim
  • 3,710
  • 12
  • 57
  • 95
  • Try updating to the [1.8 beta of TypeScript](https://blogs.msdn.microsoft.com/typescript/2016/01/28/announcing-typescript-1-8-beta/). It lets you override your VS project's compile settings with a `tsconfig.json` file. – Joe Clay Mar 08 '16 at 09:57
  • @JoeClay Updated to latest TS but still looking into node_modules folder and emitting lots of errors. – lbrahim Mar 14 '16 at 11:19
  • Can you post your tsconfig.json file? – Joe Clay Mar 14 '16 at 11:31

0 Answers0