Auth0 Home Blog Docs

"Global not defined" when using Auth0 with Ember

I have used Auth0 with ember for a a few years now. Recently when I create any new project I get the following error “global is not defined”

I tried a basic project just using the website tutorial and get the same error.

What changed? What am I doing wrong?
Thanks!

rsvp.js:25 Uncaught ReferenceError: global is not defined at eval (cdn_utils.js:17) at Object…/node_modules/auth0-lock/lib/utils/cdn_utils.js (chunk.fbef4bc….js:1293) at webpack_require (vendor-suffix.js:1) at eval (i18n.js:40) at Object…/node_modules/auth0-lock/lib/i18n.js (chunk.fbef4bc….js:885) at webpack_require (vendor-suffix.js:1) at eval (index.js:82) at Object…/node_modules/auth0-lock/lib/core/index.js (chunk.fbef4bc….js:393) at webpack_require (vendor-suffix.js:1) at eval (chrome.js:41)

(anonymous) @ cdn_utils.js:17
./node_modules/auth0-lock/lib/utils/cdn_utils.js @ chunk.fbef4bc….js:1293
webpack_require @ vendor-suffix.js:1
(anonymous) @ i18n.js:40
./node_modules/auth0-lock/lib/i18n.js @ chunk.fbef4bc….js:885
webpack_require @ vendor-suffix.js:1
(anonymous) @ index.js:82
./node_modules/auth0-lock/lib/core/index.js @ chunk.fbef4bc….js:393
webpack_require @ vendor-suffix.js:1
(anonymous) @ chrome.js:41
./node_modules/auth0-lock/lib/ui/box/chrome.js @ chunk.fbef4bc….js:1017
webpack_require @ vendor-suffix.js:1
(anonymous) @ container.js:14
./node_modules/auth0-lock/lib/ui/box/container.js @ chunk.fbef4bc….js:1041
webpack_require @ vendor-suffix.js:1
(anonymous) @ box.js:18
./node_modules/auth0-lock/lib/ui/box.js @ chunk.fbef4bc….js:993
webpack_require @ vendor-suffix.js:1
(anonymous) @ core.js:17
./node_modules/auth0-lock/lib/core.js @ chunk.fbef4bc….js:333
webpack_require @ vendor-suffix.js:1
(anonymous) @ lock.js:5
./node_modules/auth0-lock/lib/lock.js @ chunk.fbef4bc….js:921
webpack_require @ vendor-suffix.js:1
(anonymous) @ index.js:6
./node_modules/auth0-lock/lib/index.js @ chunk.fbef4bc….js:909
webpack_require @ vendor-suffix.js:1
webpack_require.t @ vendor-suffix.js:1
characterData (async)
next @ backburner.js:17
_scheduleAutorun @ backburner.js:946
_end @ backburner.js:777
Backburner._boundAutorunEnd @ backburner.js:484
characterData (async)
next @ backburner.js:17
_scheduleAutorun @ backburner.js:946
_end @ backburner.js:777
Backburner._boundAutorunEnd @ backburner.js:484
characterData (async)
next @ backburner.js:17
_scheduleAutorun @ backburner.js:946
_end @ backburner.js:777
Backburner._boundAutorunEnd @ backburner.js:484
characterData (async)
next @ backburner.js:17
_scheduleAutorun @ backburner.js:946
_end @ backburner.js:777
Backburner._boundAutorunEnd @ backburner.js:484
characterData (async)
next @ backburner.js:17
_scheduleAutorun @ backburner.js:946
_end @ backburner.js:777
Backburner._boundAutorunEnd @ backburner.js:484
characterData (async)
next @ backburner.js:17
_scheduleAutorun @ backburner.js:946
_end @ backburner.js:777
Backburner._boundAutorunEnd @ backburner.js:484
characterData (async)
next @ backburner.js:17
_scheduleAutorun @ backburner.js:946
_end @ backburner.js:777
Backburner._boundAutorunEnd @ backburner.js:484
characterData (async)
next @ backburner.js:17
_scheduleAutorun @ backburner.js:946
_end @ backburner.js:777
Backburner._boundAutorunEnd @ backburner.js:484
characterData (async)
next @ backburner.js:17
_scheduleAutorun @ backburner.js:946
_end @ backburner.js:777
Backburner._boundAutorunEnd @ backburner.js:484
characterData (async)
next @ backburner.js:17
_scheduleAutorun @ backburner.js:946
_end @ backburner.js:777
Backburner._boundAutorunEnd @ backburner.js:484
characterData (async)
next @ backburner.js:17
_scheduleAutorun @ backburner.js:946
_end @ backburner.js:777
Backburner._boundAutorunEnd @ backburner.js:484
characterData (async)
next @ backburner.js:17
_scheduleAutorun @ backburner.js:946
_ensureInstance @ backburner.js:938
schedule @ backburner.js:594
(anonymous) @ rsvp.js:13
reject @ rsvp.js:319
(anonymous) @ rsvp.js:408
Promise.then (async)
(anonymous) @ auth0.js:217
initializePromise @ rsvp.js:397
Promise @ rsvp.js:877
showLock @ auth0.js:216
authenticate @ auth0-lock.js:13
authenticate @ internal-session.js:31
authenticate @ session.js:168
login @ login.js:21
send @ action_handler.js:30
(anonymous) @ ember-glimmer.js:5837
exports.flaggedInstrument @ ember-metal.js:4701
(anonymous) @ ember-glimmer.js:5836
_run @ backburner.js:815
_join @ backburner.js:793
join @ backburner.js:568
join @ ember-metal.js:435
handler @ ember-glimmer.js:5815
(anonymous) @ event_dispatcher.js:233
dispatch @ jquery.js:5237
elemData.handle @ jquery.js:5044

Hi there @aneil.shah, welcome to the Auth0 Community!

I see you are leveraging Auth0 Lock, what version are you currently using? Can you direct message me your tenant name? Is the project a public or private repo? Any additional information you can share would be beneficial!

Thanks!

Thank you for sharing the additional details @aneil.shah, I will let you know what I find.

After looking this over it appears to be a problem somewhere within the project itself. However i need some more details on this front.

Can you share the tutorial so I can do my best to replicate this locally? Thanks in advance!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.