Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Circular dependency found when trying to integrate with ng1.3 #98

Closed
18601673727 opened this issue Aug 29, 2014 · 14 comments
Closed

Circular dependency found when trying to integrate with ng1.3 #98

18601673727 opened this issue Aug 29, 2014 · 14 comments
Labels
Milestone

Comments

@18601673727
Copy link

Uncaught Error: [$injector:cdep] Circular dependency found: $http <- $templateRequest <- $animate <- cfpLoadingBar <- $http <- Local
https://docs.angularjs.org/error/$injector/cdep?p0=$http%20%3C-%20$templateRequest%20%3C-%20$animate%20%3C-%20cfpLoadingBar%20%3C-%20$http%20%3C-%20Local

@efolio
Copy link

efolio commented Aug 30, 2014

👍

@billxinli
Copy link

Was working with earlier versions of Angular.js 1.3

@jullierme
Copy link

Hello,

Here I have the following error:

Error: [$injector:cdep] Circular dependency found: $templateRequest <- $animate <- cfpLoadingBar <- $http <- $templateRequest <- $compile
http://errors.angularjs.org/1.3.0-rc.0/$injector/cdep?p0=%24templateRequest%20%3C-%20%24animate%20%3C-%20cfpLoadingBar%20%3C-%20%24http%20%3C-%20%24templateRequest%20%3C-%20%24compile angular.js

Thanks

@ArthurianX
Copy link

Yup, same here.

Workaround anybody ? :)

@ArthurianX
Copy link

https://www.dropbox.com/s/x04l66hcdt5egll/Screenshot%202014-09-01%2013.01.20.png?dl=0

The error appears because the injection of the interceptor is done in the config phase.

Trying to work around that and fix it.

@nonameplum
Copy link

This due to ?:
angular/angular.js@a70e283

@stefanmihoc
Copy link

Also waiting for this to be solved. Any workaround?

@efolio
Copy link

efolio commented Sep 2, 2014

You can target the previous version of angular-animate in the meantime:

{
  "dependencies": {
    "angular": "v1.3.0-rc.0",
    "angular-animate": "1.3.0-build.3121+sha.a4520a7"
  }
}

@stefanmihoc
Copy link

Thank you very much. It works.

@PatrickJS
Copy link
Contributor

+1

ionparticle added a commit to ubc/compair that referenced this issue Sep 2, 2014
Caused by angular-loading-bar. Should update version when issue is
fixed: chieffancypants/angular-loading-bar#98
@nikhildev
Copy link

Any permanent fix yet?

@circlingthesun
Copy link

👍

@circlingthesun
Copy link

#99 works around the issue by injecting $animate where it is needed. I'm not sure how performant it is to do this, but it seems to work.

@chieffancypants
Copy link
Owner

Thanks for the reports everyone! I'm unlikely to find any issues with 1.3, as I'm not currently using it in any projects, so I appreciate the heads up. @gdi2290 sent a PR which should solve this, and I'll update bower soon.

@chieffancypants chieffancypants added this to the next version milestone Sep 4, 2014
thomasvs pushed a commit to thomasvs/mushin-hoodie that referenced this issue Oct 23, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.