You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A few examples.
../async_pipe.d.ts(39,38): error TS2304: Cannot find name 'Promise'.
../index.d.ts(47,36): error TS2304: Cannot find name 'Iterable'.
../index.d.ts(1479,36): error TS2339: Property 'for' does not exist on type 'SymbolConstructor'.
The text was updated successfully, but these errors were encountered:
Let me add a little more detail to @milesaylward answer. You add "lib" : ["es2015", "es2015.iterable", "dom"] as an entry to the "compilerOptions": property found in the tsconfig.json file. E.g.
{
"compilerOptions": {
"target": "es5",
... // skipping entries here
"suppressImplicitAnyIndexErrors": true, // Don't forget to add the comma here.
"lib" : ["es2015", "es2015.iterable", "dom"]
}
}
Again, I have no idea why this works. If someone can explain what the problem was and how the "lib" compile option fixed the issue - please, please do.
A few examples.
../async_pipe.d.ts(39,38): error TS2304: Cannot find name 'Promise'.
../index.d.ts(47,36): error TS2304: Cannot find name 'Iterable'.
../index.d.ts(1479,36): error TS2339: Property 'for' does not exist on type 'SymbolConstructor'.
The text was updated successfully, but these errors were encountered: