Uncaught TypeError: angular.module(...).info is not a function
I installed angular-cookies
from here: https://www.npmjs.com/package/angular-cookies via yarn: yarn add angular-cookies
.
Added the dependency in my index like so:
<!-- build:vendors -->
<script src="assets/js/libs/vendors.min.js"></script>
<script src="../node_modules/angular-cookies/angular-cookies.js"></script>
<!-- endbuild -->
<!-- build:bundle-js -->
<script src="assets/js/tickertags.bundle.js"></script>
<!-- endbuild -->
Then added ngCookies
inject in my app.js
"use strict";
module.exports = angular.module('tickertags', [
'templateCache',
'tickertags-tags', // tags / tags_module.js
'tickertags-tickers', // tickers / tickers_module.js
'ngCookies',
'ui.mask', // https://github.com/angular-ui/ui-mask
'ui.router', // https://github.com/angular-ui/ui-router
'ui.bootstrap', // https://github.com/angular-ui/bootstrap,
])
I also upgraded to angular 1.6.4 (from 1.5.4) and still running into this error.
I was managing Angular via bower not NPM.
My bower version was ~1.5.9
and needed to bower install angular-cookies
as well.