A few years later but just got the same error after upgrading to version 3.3
The project used to compile just fine before the upgrade.
Five years later and still searches bring up nothing.
So frustrating, I can't still solve this problem, just one day it stop compiling and threw this error, even though code never changed. Not sure if cypress auto upgraded without my knowing, but regardless I cannot solve this issue even trying uninstall the whole thing and reinstall it. Really Stupid.
I experienced the same error after removing (disabling) a "Bootloadable" component from my .cysch file. I believe the main problem is that there is still code and config files in the "Generated_Source" folder that needs to be re-generated after changing the component. I removed my "Generated_Source" folder and let the tool re-generate it and my problem is fixed.