Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

angular.module(...).info is not a function in angular-aria #15786

Closed
kdutkowski opened this issue Mar 9, 2017 · 11 comments
Closed

angular.module(...).info is not a function in angular-aria #15786

kdutkowski opened this issue Mar 9, 2017 · 11 comments

Comments

@kdutkowski
Copy link

kdutkowski commented Mar 9, 2017

I encountered the following bug - after upgrading angular-aria to recently released v1.6.3 I'm getting the following error:

Uncaught TypeError: angular.module(...).info is not a function
    at angular-aria.js:62
    at angular-aria.js:403

When I downgrade to v1.6.2, the app works normally.

@Narretz
Copy link
Contributor

Narretz commented Mar 9, 2017

You need to update angular to 1.6.3, too. The .info fn is defined in angular.js itself. It's always been the case that the core file and the module files have to have the same version.

@kdutkowski
Copy link
Author

Found out it's a problem with angular-material dependency, not angular itself. Leaving this here should anyone have the same problem angular/material#10475.

Thanks for help!

@Pax125
Copy link

Pax125 commented Mar 14, 2017

Thank U so much Narretz :)
I spent ONE day debugging my codes.

@leongaban
Copy link

Hi I'm running into this problem as well. Not using Aria, just angular-cookies. I upgraded to angular 1.6.4 and noticed that there is no info function in angular.js

http://stackoverflow.com/questions/43188708/installed-angular-cookies-getting-angular-module-error-on-info-function

@gkalpak
Copy link
Member

gkalpak commented Apr 3, 2017

@leongaban, you should update all AngularJS modules to be on the same version.

@leongaban
Copy link

@gkalpak yes, it was my mistake, I had all the angular dependencies manage by bower, not npm. Npm was only for Gulp deps, but I had angularjs in there as well. Removed from npm, installed via bower and ran my build scripts and it all works now!

@ileathan
Copy link

ileathan commented May 7, 2017

Hi I get the same error with

  <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular-route.js"></script>
  <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular.min.js"></script>

@gkalpak
Copy link
Member

gkalpak commented May 7, 2017

@ileathan, maybe try loading angular.min.js first.

@yogi07
Copy link

yogi07 commented Jun 12, 2017

just replace ^ sign of the before version to ~ sign and apply following command
bower install --force

it worked for me.. :)

@sajidsidhu
Copy link

just use same version of angular.min.js and angular-sanitize.min.js.
it will fixed 100% ;)

@khoramshahy
Copy link

I had this problem too and solved that by using lower version of angular-aria

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants