Semantic-Org/Semantic-UI · warning
The method you called is not defined.
Error message
The method you called is not defined.
What it means
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.
Source
Thrown at src/definitions/modules/sidebar.js:1023
bottom : 'bottom',
visible : 'visible'
},
selector: {
fixed : '.fixed',
omitted : 'script, link, style, .ui.modal, .ui.dimmer, .ui.nag, .ui.fixed',
pusher : '.pusher',
sidebar : '.ui.sidebar'
},
regExp: {
ios : /(iPad|iPhone|iPod)/g,
mobileChrome : /(CriOS)/g,
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
},
error : {
method : 'The method you called is not defined.',
pusher : 'Had to add pusher element. For optimal performance make sure body content is inside a pusher element',
movedSidebar : 'Had to move sidebar. For optimal performance make sure sidebar and pusher are direct children of your body tag',
overlay : 'The overlay setting is no longer supported, use animation: overlay',
notFound : 'There were no elements that matched the specified selector'
}
};
})( jQuery, window, document );
View on GitHub (pinned to 597843ab84)
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.
Example fix
// before
$('.sidebar').sidebar('showw'); // typo -> console.error
// after
$('.sidebar').sidebar('show'); Defensive patterns
Strategy: validation
Validate before calling
// Validate against sidebar's method list before invoking.
var sidebarMethods = ['show','hide','toggle','push','pull','overlay','is open','is closed','refresh','attach events','destroy','set body color'];
function callSidebar($el, method, args){
if (sidebarMethods.indexOf(method) === -1) {
throw new Error('Unknown sidebar method: ' + method);
}
return $el.sidebar(method, args);
} Prevention
- 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.
When it happens
Trigger: $('.sidebar').sidebar('showw') (typo) — the dispatcher's lookup (sidebar.js:885-908) finds no matching key and calls module.error(error.method, query).
Common situations: Typo in a method name, using an API from a different Semantic UI version.
Related errors
- The method you called is not defined.
- The method you called is not defined
- The method you called is not defined
- The method you called is not defined.
- The method you called is not defined
AI-assisted analysis of Semantic-Org/Semantic-UI@597843ab84 (2026-08-13).
Data as JSON: /api/errors/fae0fd0abe11bf3a.
Report an issue: GitHub.