Typescript: "object is possibly null or undefined" warning
Example:
let el: HTMLElement | null = document.getElementById("myId");
el.innerText = "Hello";
Occurs when the TypeScript compiler isn't sure if an object exists or not.
Solution:
if(el) {
el.innerText = "Hello";
}