I keep getting a warning about circular dependencies when using barrelsby in Angular 10.
Error:
WARNING in Circular dependency detected:
src\app\core\components\components.module.ts -> src\app\core\components\header\header.component.ts -> src\app\state\index.ts -> src\app\core\components\components.module.ts
Organizational structure:
/component
/header
header.component.ts
index.ts
index.ts
export * from './header.component';
component.module.ts
import { HeaderComponent } from './header';
@NgModule({
imports: [],
exports: [
HeaderComponent,
],
declarations: [
HeaderComponent
]
})
index.ts
export * from './header/index';