Invalid provider for null. useClass cannot be null.
Usually it happens when:
1. There's a circular dependency (might be caused by using index.ts (barrel) files).
2. Class was used before it was declared. Use forwardRef in this case.
И как такое дебажить?
ng build --prod --aot
crtl+f -> useClass
Обсуждают сегодня