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

Module 'ng-auth-token' is not available! #237

Closed
dgoradia opened this issue Dec 6, 2015 · 1 comment
Closed

Module 'ng-auth-token' is not available! #237

dgoradia opened this issue Dec 6, 2015 · 1 comment

Comments

@dgoradia
Copy link

dgoradia commented Dec 6, 2015

Error: [$injector:modulerr] Failed to instantiate module ng-auth-token due to:
Error: [$injector:nomod] Module 'ng-auth-token' 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.
'use-strict';

var insightDashboard = angular.module('insightDashboard', [
  'ui.router',
  'templates',
  'ng-auth-token'
]);

The files are definitely included:

//= require jquery
//= require jquery_ujs
//= require turbolinks
//= require angular
//= require angular-ui-router
//= require angular-cookie
//= require ng-token-auth
//= require angular-bootstrap
//= require restangular
//= require angular-rails-templates
//= require_tree .

I followed the instruction in the readme but getting the error above.

@dgoradia
Copy link
Author

dgoradia commented Dec 8, 2015

Ok, I'm an idiot. I misspelt 'ng-token-auth' with 'ng-auth-token'.

@dgoradia dgoradia closed this as completed Dec 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant