Component generation is not ordered by inheritance, it is ordered however the parser decides (alphabetical?). This means you can have a component that inherits from another component that has not yet been defined in the generated components file. This needs to be ordered based on the inheritance order.