How to fix 'super' must be called before accessing properties on 'this' in a derived class in TypeScript | DevErrors