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

TypeError: __WEBPACK_IMPORTED_MODULE_3_auth0_js__.webAuth is not a constructor #53

Open
amitvchaudhary opened this issue Aug 12, 2017 · 1 comment

Comments

@amitvchaudhary
Copy link

Hi All,

I am getting below error:
TypeError: WEBPACK_IMPORTED_MODULE_3_auth0_js.webAuth is not a constructor

I am using "auth0-js": "^8.9.1", in my package.json and have followed those auto generated docs and have come across this error.

Please let me know the solution of this.

@shime
Copy link

shime commented Aug 15, 2017

Looks like you're still using an older version of auth0-js. What happens if you run it like this:

import auth0 from 'auth0-js'

new auth0({
  domain: 'blahblah.auth0.com',
  clientID: 'blah',
  redirectUri: 'http://localhost:3000/callback',
  audience: 'https://blahblah.auth0.com/userinfo',
  responseType: 'token id_token',
  scope: 'openid'
});

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

2 participants