Angular cyclic dependency when enabling ivy
Turns out that in my app.module providers I had a class with {provideIn: 'root'} in the @Injectable(), removing that fixed it.
providers: [
{ provide: ErrorHandler, useClass: AppErrorHandler }
]
Before
@Injectable({ providedIn: 'root' })
export class AppErrorHandler implements ErrorHandler {
After
@Injectable()
export class AppErrorHandler implements ErrorHandler {
I don't know why this wasn't a problem before ivy, even with AoT