How to fix: Module ‘ngStorage’ is not available!

Well, this is a fun one.

Quite an easy fix – pay more attention to the manual!

The error:

Uncaught Error: [$injector:modulerr] Failed to instantiate module yourAppNameHere due to:
Error: [$injector:modulerr] Failed to instantiate module ngStorage due to:
Error: [$injector:nomod] Module 'ngStorage' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.
http://errors.angularjs.org/1.4.6/$injector/nomod?p0=ngStorage
    at REGEX_STRING_REGEXP (http://localhost:3000/bower_components/angular/angular.js:68:12)
    at http://localhost:3000/bower_components/angular/angular.js:1986:17
    at ensure *snip*

The fix:

In my case, the fix was to install ngstorage not ngStorage – note the capital ‘S’ in the ‘bad’ variant.

It’s actually right there in the manual :/

bower install ngstorage manual entry

(Shame face)

Assuming you are installing using Bower, you want to ensure you are seeing something similar to the following:

bower install ngstorage

Note the reference to gsklee.

And you should be good to go.

Published by

Code Review

CodeReviewVideos is a video training site helping software developers learn Symfony faster and easier.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.