You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add circular dependency plugin to Webpack config #6739
Circular dependency bugs are easy to introduce and can be hard to detect and troubleshoot. Sometimes everything works fine, but in a few cases I've had module imports show up as undefined at runtime. Last time it happened, it was only in AOT mode, so I didn't catch it initially.
It would be helpful if the CLI included a plugin that warns you if circular dependencies are detected and logs the modules that are part of the cycle.
Mention any other details that might be useful.
I used this plugin and it found several issues in my project.
However, I couldn't configure Webpack to use the plugin without ejecting the config, and I'd rather not have to do that each time I need to debug an issue like this.
Reacted by Ábner Silva de Oliveira, Michael Prentice and Bert Verhelst
Activity
filipesilva commentedon Jun 26, 2017
I'll have a look. I agree it's a difficult to debug issue and that we should add a plugin if it helps and has no unexpected side effects.
feat(@angular/cli): add circular dependency detection
feat(@angular/cli): add circular dependency detection
feat(@angular/cli): add circular dependency detection
feat(@angular/cli): add circular dependency detection
feat(@angular/cli): add circular dependency detection
feat(@angular/cli): add circular dependency detection
feat(@angular/cli): add circular dependency detection
feat(@angular/cli): add circular dependency detection
feat(@angular/cli): add circular dependency detection
di3orlive commentedon Jul 13, 2017
@filipesilva
ng build --show-circular-dependenciesnot working yet?
filipesilva commentedon Jul 14, 2017
It should be working in
@angular/cli@next.di3orlive commentedon Jul 14, 2017
@filipesilva tnx. so its only show some errors in console on build ?
filipesilva commentedon Jul 17, 2017
Check #6813 for an example of the output.
di3orlive commentedon Jul 17, 2017
@filipesilva cool (: tnx, useful feature
feat(@angular/cli): add circular dependency detection
angular-automatic-lock-bot commentedon Sep 7, 2019
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.
feat(@angular/cli): add circular dependency detection