Angular-cli: Barrels and circular dependencies

Created on 10 Aug 2017  路  2Comments  路  Source: angular/angular-cli

Bug Report or Feature Request (mark with an x)

- [ x ] bug report -> please search issues before submitting
- [ ] feature request

Versions.

@angular/cli: 1.3.0
node: 8.1.2
os: win32 x64
@angular/common: 4.3.3
@angular/compiler: 4.3.3
@angular/core: 4.3.3
@angular/forms: 4.3.3
@angular/platform-browser: 4.3.3
@angular/platform-browser-dynamic: 4.3.3
@angular/router: 4.3.3
@angular/cli: 1.3.0
@angular/compiler-cli: 4.3.3
@angular/language-service: 4.3.3

Repro steps.

index.ts

export * from "./a";
export * from "./b";

a.ts

import { A, B } from "./";

export class A {
}

The log given by the failure.

WARNING in Circular dependency detected:

Desired functionality.

An option to disable this warning

Mention any other details that might be useful.

First seen with Angular CLI 1.3.0

Most helpful comment

In .angular-cli.json set the showCircularDependencies to false:

{
  ...
  "defaults": {
     ...
     "build": {
       "showCircularDependencies": false
      }
   }
}

All 2 comments

In .angular-cli.json set the showCircularDependencies to false:

{
  ...
  "defaults": {
     ...
     "build": {
       "showCircularDependencies": false
      }
   }
}

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

_This action has been performed automatically by a bot._

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rajjejosefsson picture rajjejosefsson  路  3Comments

JanStureNielsen picture JanStureNielsen  路  3Comments

brtnshrdr picture brtnshrdr  路  3Comments

daBishMan picture daBishMan  路  3Comments

delasteve picture delasteve  路  3Comments