Angular.js: angular.module(...).info is not a function in angular-aria

Created on 9 Mar 2017  ·  11Comments  ·  Source: angular/angular.js

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.

Most helpful comment

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.

All 11 comments

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.

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

Thanks for help!

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

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

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

@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!

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>

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

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

it worked for me.. :)

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

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

Was this page helpful?
0 / 5 - 0 ratings