dianping/cat · error · Error
There is no element with given selector.
Error message
There is no element with given selector.
What it means
Error "There is no element with given selector." thrown in dianping/cat.
Source
Thrown at cat-home/src/main/webapp/js/intro.js:1166
var obj3 = {};
for (var attrname in obj1) { obj3[attrname] = obj1[attrname]; }
for (var attrname in obj2) { obj3[attrname] = obj2[attrname]; }
return obj3;
}
var introJs = function (targetElm) {
if (typeof (targetElm) === 'object') {
//Ok, create a new instance
return new IntroJs(targetElm);
} else if (typeof (targetElm) === 'string') {
//select the target element with query selector
var targetElement = document.querySelector(targetElm);
if (targetElement) {
return new IntroJs(targetElement);
} else {
throw new Error('There is no element with given selector.');
}
} else {
return new IntroJs(document.body);
}
};
/**
* Current IntroJs version
*
* @property version
* @type String
*/
introJs.version = VERSION;
//Prototype
introJs.fn = IntroJs.prototype = {
clone: function () {
return new IntroJs(this);View on GitHub (pinned to e815e74d4c)
Solutions
- Verify the element selector in the tour step matches an element present in the DOM.
- Remove or update steps that reference elements not rendered on the current page.
When it happens
Trigger: Triggered when introJs is started with a target element selector that matches no element in the DOM, typically because the element is not yet rendered or the selector is wrong.
Common situations: See trigger scenarios.
AI-assisted analysis of dianping/cat@e815e74d4c (2026-08-14).
Data as JSON: /api/errors/7e35f1092f4667f0.
Report an issue: GitHub.