{"record":{"id":"fae0fd0abe11bf3a","repo":"Semantic-Org/Semantic-UI","slug":"the-method-you-called-is-not-defined-fae0fd","errorCode":null,"errorMessage":"The method you called is not defined.","messagePattern":"The method you called is not defined\\.","errorType":"console","errorClass":null,"httpStatus":null,"severity":"warning","filePath":"src/definitions/modules/sidebar.js","lineNumber":1023,"sourceCode":"    bottom    : 'bottom',\n    visible   : 'visible'\n  },\n\n  selector: {\n    fixed   : '.fixed',\n    omitted : 'script, link, style, .ui.modal, .ui.dimmer, .ui.nag, .ui.fixed',\n    pusher  : '.pusher',\n    sidebar : '.ui.sidebar'\n  },\n\n  regExp: {\n    ios          : /(iPad|iPhone|iPod)/g,\n    mobileChrome : /(CriOS)/g,\n    mobile       : /Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Silk-Accelerated|(hpw|web)OS|Fennec|Minimo|Opera M(obi|ini)|Blazer|Dolfin|Dolphin|Skyfire|Zune/g\n  },\n\n  error   : {\n    method       : 'The method you called is not defined.',\n    pusher       : 'Had to add pusher element. For optimal performance make sure body content is inside a pusher element',\n    movedSidebar : 'Had to move sidebar. For optimal performance make sure sidebar and pusher are direct children of your body tag',\n    overlay      : 'The overlay setting is no longer supported, use animation: overlay',\n    notFound     : 'There were no elements that matched the specified selector'\n  }\n\n};\n\n\n})( jQuery, window, document );\n","sourceCodeStart":1005,"sourceCodeEnd":1034,"githubUrl":"https://github.com/Semantic-Org/Semantic-UI/blob/597843ab84d565cccfd8fd7719416350ae73e734/src/definitions/modules/sidebar.js#L1005-L1034","documentation":"Emitted by Sidebar's invoke() dispatcher (sidebar.js:905) when a string method name does not resolve to any property on the sidebar module instance. Sidebar actually logs this via module.error (sidebar.js:818), a bound console.error gated by settings.silent. It is not a thrown exception.","triggerScenarios":"$('.sidebar').sidebar('showw') (typo) — the dispatcher's lookup (sidebar.js:885-908) finds no matching key and calls module.error(error.method, query).","commonSituations":"Typo in a method name, using an API from a different Semantic UI version.","solutions":["Use a documented sidebar method: 'show', 'hide', 'toggle', 'push', 'pull', 'overlay', etc.","Confirm the method exists for your installed version.","Set silent:true to suppress the message after confirming it is benign."],"exampleFix":"// before\n$('.sidebar').sidebar('showw'); // typo -> console.error\n// after\n$('.sidebar').sidebar('show');","handlingStrategy":"validation","validationCode":"// Validate against sidebar's method list before invoking.\nvar sidebarMethods = ['show','hide','toggle','push','pull','overlay','is open','is closed','refresh','attach events','destroy','set body color'];\nfunction callSidebar($el, method, args){\n  if (sidebarMethods.indexOf(method) === -1) {\n    throw new Error('Unknown sidebar method: ' + method);\n  }\n  return $el.sidebar(method, args);\n}","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Pin your Semantic UI version so the sidebar method set is stable.","Wrap the call in a validated helper so typos fail loudly in dev.","Use silent:true to suppress the console.error (sidebar.js:818) in production."],"tags":["sidebar","method-dispatch"],"backgroundTag":null,"analyzedSha":"597843ab84d565cccfd8fd7719416350ae73e734","analyzedAt":"2026-08-13T01:44:23.827Z","schemaVersion":2},"datasetVersion":"2026-08-13T04:17:16.726Z"}