Encountered undefined provider!

Generally a better idea is to eliminate the circular dependency, instead of enabling it.