# Lock.js: Browser throwing console error: Can't find element with id login-content

**URL:** <https://community.auth0.com/t/lock-js-browser-throwing-console-error-cant-find-element-with-id-login-content/7719>\
**Category:** Get Help\
**Tags:** lockjs, lock\
**Created:** [August 2, 2017, 7:07am UTC](https://community.auth0.com/t/lock-js-browser-throwing-console-error-cant-find-element-with-id-login-content/7719 "2017-08-02T07:07:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mcarreiro](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mcarreiro/32/7155_2.png) [@mcarreiro](https://community.auth0.com/u/mcarreiro)\
**Post date:** [August 2, 2017, 7:07am UTC](https://community.auth0.com/t/lock-js-browser-throwing-console-error-cant-find-element-with-id-login-content/7719/1 "2017-08-02T07:07:54Z")

</div>

I’m using Auth0’s Lock. It’s all working great, however, I noticed that whenever I login I see the browser console throw an error message a few times:

> Error: Can’t find element with id login-content

It points to: box.js Line 27. Does anyone know how I might be causing this? It doesn’t seem to be pointing to any of my code. The full stack trace is:

```
[Error] Error: Can't find element with id login-content
	ensure (lock.min.js:9:511392)
	render (lock.min.js:9:511573)
	(anonymous function) (lock.min.js:9:481895)
	(anonymous function) (lock.min.js:9:83664)
	forEach
	_change (lock.min.js:9:548041)
	M (lock.min.js:9:97853)

```

---

<div class="post-metadata">

**Author:** ![jmangelo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jmangelo/32/7923_2.png) [@jmangelo](https://community.auth0.com/u/jmangelo)\
**Post date:** [August 2, 2017, 5:06pm UTC](https://community.auth0.com/t/lock-js-browser-throwing-console-error-cant-find-element-with-id-login-content/7719/2 "2017-08-02T17:06:56Z")

</div>

I can get that exact error, `Can't find element with id login-content`, if I configure Lock with the `container` option pointing to a `login-content` element and that element is not available in my page.

If you’re using that option you need to ensure there’s a corresponding HTML element with the ID you provided, in this case the ID would be `login-content`.

---

<div class="post-metadata">

**Author:** ![mbrown](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@mbrown](https://community.auth0.com/u/mbrown)\
**Post date:** [September 13, 2017, 2:48am UTC](https://community.auth0.com/t/lock-js-browser-throwing-console-error-cant-find-element-with-id-login-content/7719/3 "2017-09-13T02:48:38Z")

</div>

Hi,  
Any update about this?  
I’m having the same issue.

Regards

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [March 2, 2018, 5:55am UTC](https://community.auth0.com/t/lock-js-browser-throwing-console-error-cant-find-element-with-id-login-content/7719/4 "2018-03-02T05:55:43Z")

</div>


