The problem is that you named your error type Error - which conflicts with the standard Error protocol (so Swift thinks you have a circular link).
You can refer to the Swift Error protocol as Swift.Error to disambiguate:
enum Error : Swift.Error { case NotFound }
But this will mean that any future links to Error in your module will refer to your Error type, and not to the Swift Error protocol (you will have to fix the problem again).
Therefore, the easiest solution would be to simply rename your type of error to something more descriptive.
source share