{"record":{"id":"7e35f1092f4667f0","repo":"dianping/cat","slug":"there-is-no-element-with-given-selector","errorCode":null,"errorMessage":"There is no element with given selector.","messagePattern":"There is no element with given selector\\.","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"cat-home/src/main/webapp/js/intro.js","lineNumber":1166,"sourceCode":"    var obj3 = {};\n    for (var attrname in obj1) { obj3[attrname] = obj1[attrname]; }\n    for (var attrname in obj2) { obj3[attrname] = obj2[attrname]; }\n    return obj3;\n  }\n\n  var introJs = function (targetElm) {\n    if (typeof (targetElm) === 'object') {\n      //Ok, create a new instance\n      return new IntroJs(targetElm);\n\n    } else if (typeof (targetElm) === 'string') {\n      //select the target element with query selector\n      var targetElement = document.querySelector(targetElm);\n\n      if (targetElement) {\n        return new IntroJs(targetElement);\n      } else {\n        throw new Error('There is no element with given selector.');\n      }\n    } else {\n      return new IntroJs(document.body);\n    }\n  };\n\n  /**\n   * Current IntroJs version\n   *\n   * @property version\n   * @type String\n   */\n  introJs.version = VERSION;\n\n  //Prototype\n  introJs.fn = IntroJs.prototype = {\n    clone: function () {\n      return new IntroJs(this);","sourceCodeStart":1148,"sourceCodeEnd":1184,"githubUrl":"https://github.com/dianping/cat/blob/e815e74d4c2dd74edac831241f1253fcc7d25381/cat-home/src/main/webapp/js/intro.js#L1148-L1184","documentation":"Error \"There is no element with given selector.\" thrown in dianping/cat.","triggerScenarios":"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.","commonSituations":"See trigger scenarios.","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."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"e815e74d4c2dd74edac831241f1253fcc7d25381","analyzedAt":"2026-08-14T14:22:34.512Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}