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
global is not defined Angular 6 #1411
Comments
it will be fixed in the next release, when we upgrade the auth0-js dependency |
@luisrudge Is their an easy work around in the meantime? |
Use the cdn or see the wordaround |
I'm using:
that was just 3,4 days ago but this error's still happening |
@MichaelBui can you please run |
Here is the result:
Forgot to mention, I'm using |
can you paste a stack trace of the issue? |
Here you are:
|
This is (partial) code of 'use strict';
exports.__esModule = true;
exports.load = load;
exports.preload = preload;
var _auth0Js = require('auth0-js');
var _auth0Js2 = _interopRequireDefault(_auth0Js);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
if (!global.Auth0) {
global.Auth0 = {};
}
var cbs = {}; |
And in the source code (https://github.com/auth0/lock/blob/master/src/utils/cdn_utils.js#L3): import Auth0 from 'auth0-js';
if (!global.Auth0) {
global.Auth0 = {};
}
const cbs = {}; |
OH yeah, you're right. I mistakenly thought this was only an auth0-js issue, but we have A LOT of
|
I'm using the Ionic app that is generated by |
In the entry file, I guess. index.js or something |
For people who are facing the same problem, I put this in
Thanks @luisrudge |
@MichaelBui Thanks for sharing this! |
Currently in Ionic 4.1.2 It didn't work in Just paste this on the bottom of your app's
|
Using any browser, by just performing a login with this library we get this error:
I saw this was already fixed in the main Auth0.js library:
auth0/auth0.js#753
The text was updated successfully, but these errors were encountered: