-
-
Notifications
You must be signed in to change notification settings - Fork 594
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
Cannot find name 'document', 'window', ... Do you need to change your target library? #1646
Comments
Could you provide self-contained reproduction? |
Added |
Did you read the link I posted? Text is not a reproduction as we cannot exactly confirm the issue from it. You can provide minimal example project, reproducing the issue, as GitHub repository, for example. |
Added a minimal test app. The path to the file with the error is src/components/HelloWorld.vue |
Seems like its actually working now, I didnt found the issue |
Might be a late reply but adding "DOM" to lib in compilerOptions solved it for me
|
Info
Problem
Using Typescript.
What I done:
Seems like simple dom objects/methods are unknown to Vetur even when DOM is defined in lib.
tsconfig.json:
Reproducible Case
Test application: https://github.com/scriptlessatwork/test-app
For example using document.* or window.* methods in a Vue component method.
Language is Typescript.
The text was updated successfully, but these errors were encountered: