auth0-blog / angular-auth

24 stars 25 forks source link

Auth0Widget is not defined #1

Open Zeychiel opened 8 years ago

Zeychiel commented 8 years ago

Hi, I used to use the method described for Angular.js + Go wich was working like a charm. I decided to browserify the angularJs and now I get the error :

Uncaught Error: [$injector:modulerr] Failed to instantiate module app due to:
ReferenceError: Auth0Widget is not defined

My code is :

var angular = require('angular');
require('angular-route');
require('angular-storage');
require('angular-cookies');
require('angular-jwt');
require('auth0-angular');

angular
    .module('app', [
        'ngRoute', // Routes
        'auth0', // Auth0
        'angular-storage',// Auth0
        'angular-jwt',// Auth0

Running :

Thanks for helping,

Therenho commented 8 years ago

Hi, any solution for this? I was getting the same error message as well, but I am using RequireJS. Thank you!