question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Uncaught Elements not found

See original GitHub issue

Getting an error: Uncaught Elements not found when trying to initialize.

BackgroundCheck.init({
  targets: '.title'
});

Even though .title exists.

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
dylanfishercommented, Feb 28, 2016

I agree about failing gracefully. Seems like counter-intuitive behavior that the background-checker breaks when no images are on a page, but the targets exist.

1reaction
Querschlagcommented, May 11, 2015

This issue still exists and has nothing to do with images. I set my target class in the initializer and when I load the page I get this error… There are images on my website for which I works as expected, but on I don’t have an object with my target class on EVERY page. Shouldn’t the initializer fail gracefully when there’s DOM object with the target class?

Read more comments on GitHub >

github_iconTop Results From Across the Web

[SOLVED] How to Fix Element Not Found Error (100% Working)
If you are also getting this Element Not Found Problem Issue then you don't have to worry now as you just have to...
Read more >
6 Ways to Fix the "Element Not Found" Error on Windows
6 Ways to Fix the "Element Not Found" Error on Windows · 1. Relaunch Explorer.exe · 2. Uninstall Any Recent Windows Updates ·...
Read more >
element not found list" Error in uploader.jquery.js
I get "Uncaught Error: element not found list" on like fineuploader.jquery.js?body=1:2478. browser page Screenshot. Also I'm using it in Rails ...
Read more >
How to fix javascript console errors for elements that don't exist
I have several div's (with specific IDs) that, intentionally, exist for some users but not others. Users A: These div's appear
Read more >
Click() method not working and Console returns an error ...
Example: The following code example creates the above Uncaught TypeError because we have not accessed an individual element yet.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found