How to fix Cannot find name 'X' in TypeScript | DevErrors