Monday, October 2, 2017

error TS2304: Cannot find name 'Map'.

This error and this one too...

error TS2304: Cannot find name 'Set'.

 
 

...and comparable errors about the Promise keyword will go away if you put the following in your tsconfig.json file for your Angular 4 application as a property on the compilerOptions object:

"lib": ["es5", "es6", "dom"],

 
 

This trick comes from here.

No comments:

Post a Comment