If --lib is not specified a default list of libraries are injected. The default libraries injected are:
► For --target ES5: DOM,ES5,ScriptHost
► For --target ES6: DOM,ES6,DOM.Iterable,ScriptHost
Excluding DOM from tsconfig.json + disabling the predefined HTML library should help
make sure that
DOM
lib is not included in your tsconfig.json - it's there by default if"lib"
is not specified explicitly, see https://www.typescriptlang.org/docs/handbook/compiler-options.html:Excluding
DOM
from tsconfig.json + disabling the predefinedHTML
library should help