Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Seeing many typescript errors after cloning, "npm install" and "npm start" #1

Open
BoiseBaked opened this issue Oct 5, 2017 · 1 comment

Comments

@BoiseBaked
Copy link

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'.

@BoiseBaked
Copy link
Author

BoiseBaked commented Oct 6, 2017

Answering my question:

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.

Many thanks in advanced.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant