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
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:
node_modules/juice/juice.d.ts:27:36 - error TS2304: Cannot find name 'HTMLElement'.
27 export let heightElements: HTMLElement[];
~~~~~~~~~~~
node_modules/juice/juice.d.ts:29:39 - error TS2304: Cannot find name 'HTMLElement'.
29 export let nonVisualElements: HTMLElement[];
~~~~~~~~~~~
node_modules/juice/juice.d.ts:31:35 - error TS2304: Cannot find name 'HTMLElement'.
31 export let tableElements: HTMLElement[];
~~~~~~~~~~~
node_modules/juice/juice.d.ts:32:35 - error TS2304: Cannot find name 'HTMLElement'.
32 export let widthElements: HTMLElement[];
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:
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: