How to fix Private field '#x' must be declared in an enclosing class in TypeScript | DevErrors