How to fix Cannot use namespace as a module in TypeScript | DevErrors