-
Notifications
You must be signed in to change notification settings - Fork 26
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
error TS2304: Cannot find name 'File'. #9
Comments
Interesting, I've not see this problem. What version of TypeScript are you using? |
TypeScript v.3.4.2 Previously I used 'watson-developer-cloud' v.3.18.1 it had build-in lib, but newer version 4.0.1 has dependency on 'ibm-cloud-sdk-core'. |
@AliakseiBychyk I tried installing v3.4.2 and creating a sample project depending on v4.0.1. I am not getting any errors. Will you list some specific steps I can follow to reproduce this issue? |
@AliakseiBychyk, try adding this to your {
...
"compilerOptions": {
"lib": [
...
"dom"
]
}
} As a side note, I'm not convinced that using the |
@alexpls Thanks, actually |
@alexpls I think that's a good idea, feel free to open that PR. Thanks |
Glad to hear it's working @AliakseiBychyk! @dpopp07 I've opened up a PR to use I reckon this issue can be closed now, right? |
I faced an issue with the package when executed ts build:
The text was updated successfully, but these errors were encountered: