Adding lib "ES2015" or higher solves every other type issue for typescript compilation with target ES5, but Map just doesn't want to work.
How can this issue be solved?
You have to add downlevelIteration
to compilerOptions:
"compilerOptions": {
"target": "es5",
"module": "es2015",
"moduleResolution": "node",
"lib": [ "DOM", "ES2015" ],
"downlevelIteration": true,
...
},
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With