-
Notifications
You must be signed in to change notification settings - Fork 220
-
Notifications
You must be signed in to change notification settings - Fork 220
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
Dom types not usable in nodejs (Cannot find name 'HTMLElement') #389
Comments
Same here. I didn't want to include declare type HTMLElement = never; |
3 tasks
I am also facing the same issue. @qqilihq Where to add this type? did you patch the package? |
@SMKH-PRO I added it in a global typing file in my project afair. Definitely no patching needed. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In backend nodejs projects the DOM types (
HTMLElement
) are only accessible if included explicitly by e.g."lib": ["ES2020", "dom"]
in tsconfig. Building without the included dom types gives the following error:Including all of the dom types only for the
HTMLElement
type seems like a bad idea and introducing alot of bloat.Is there any workaround or possibility for another usable type here?
The text was updated successfully, but these errors were encountered: