Skip to content
This repository has been archived by the owner on Dec 15, 2023. It is now read-only.

Auth0 is not defined, using webpack #28

Closed
steveDL opened this issue Oct 10, 2017 · 4 comments
Closed

Auth0 is not defined, using webpack #28

steveDL opened this issue Oct 10, 2017 · 4 comments

Comments

@steveDL
Copy link

steveDL commented Oct 10, 2017

I'm getting this error ...

Uncaught ReferenceError: auth0 is not defined
at Object. (app.js:32372) ---------------------> module.exports = auth0;
at webpack_require (app.js:32232)
at Object.module.exports (app.js:32298)
at webpack_require (app.js:32232)
at Object.defineProperty.value (app.js:32285)
at Object.module.exports (app.js:32287)
at webpack_require (app.js:20)
at Object._typeof (app.js:32199)
at webpack_require (app.js:20)
at Object._typeof (app.js:95)

const angular = require('angular');
require('angular-ui-router');
require('angular-auth0');
const app = angular.module('myApp',['auth0.auth0','ui.router']).config(config);

I'm requiring the the files instead of using script tags any help would be much appreciated

@steveDL steveDL changed the title Uncaught ReferenceError: auth0 is not defined Uncaught ReferenceError: auth0 is not defined using webpack Oct 10, 2017
@steveDL steveDL changed the title Uncaught ReferenceError: auth0 is not defined using webpack Auth0 is not defined, using webpack Oct 10, 2017
@juanmaguitar
Copy link

Quick (temporal) solution i've found: require('angular-auth0/src');

@mtwomey
Copy link

mtwomey commented Jun 29, 2018

This temp fix isn't working for me. Any other thoughts on a fix?

@arpadt
Copy link

arpadt commented Jul 24, 2018

Try to add the following to webpack.config.js:
plugins: [ new webpack.ProvidePlugin({ auth0: 'auth0-js' }) ]

@joshcanhelp
Copy link
Contributor

This issue has been closed as stale because it has not had recent activity. If you have not received a response for our team (apologies for the delay), please reply with any additional information or a ping. Thank you for your contribution!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants