How to fix Label 'X' is not referenced in TypeScript | DevErrors