In my case, I was exporting a Class and an Enum from the same component file:
mComponent.component.ts
:
export class MyComponentClass{...}
export enum MyEnum{...}
Then, I was trying to use MyEnum
from a child of MyComponentClass
. That was causing the Can't resolve all parameters error.
By moving MyEnum
in a separate folder from MyComponentClass
, that solved my issue!
As Günter Zöchbauer mentioned, this is happening because of a service or component is circularly dependent.