Erro TypeError: By.Subject não é um construtor
import { Subject } from "rxjs";
Muhammad Mabrouk
import { Subject } from "rxjs";