Open isimmons opened 11 months ago
Hello, I have the same problem 🙏
@isimmons @freiondrej-lokalise I also got that strange behavior, although I've completed the exercise and verified it's exactly how the solution proposes the fix should be done.
I made sure to also re-save the file '10-event-dispatcher.problem.1' to force a recompile/recheck but it still gives the type error, although the '10-event-dispatcher.problem.2' file is exactly as per the solution given by Matt. But I'm also getting this typing error in the console.
Both in the stackblitz in the course and on my local machine with the run exercise command, the tests pass but then type checking has the following error
I copied the LOG_OUT event over to problem file 1 and this fixed the problem.
But then I renamed problem file 2 to 10.1 and ran npm run exercise 10.1 and it can't find UnionOfDispatchableEvents
So I'm guessing this is because a single file is being type checked in isolation so in file 1 there is no 'LOG_OUT' and in file 2 there is no UnionOfDispatchableEvents. Is that right?