TS2304: Cannot find name ‘Map’.
TS2304: Cannot find name ‘Set’.
TS2304: Cannot find name ‘Promise’.
TS2304: Cannot find name ‘MapConstructor’.
TS2304: Cannot find name ‘SetConstructor’.
switch the transpiler’s target from ES5 to ES6. To do that, change your tsconfig.json
{
“compilerOptions”: {
“target”: “es6”,
“module”: “system”,
“moduleResolution”: “node”,
...
},
“exclude”: [
“node_modules”,
...
]
}