{"record":{"id":"dda91278189a769a","repo":"Semantic-Org/Semantic-UI","slug":"the-method-you-called-is-not-defined-dda912","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/dimmer.js","lineNumber":704,"sourceCode":"\n  // event to bind to\n  on          : false,\n\n  // overriding opacity value\n  opacity     : 'auto',\n\n  // transition durations\n  duration    : {\n    show : 500,\n    hide : 500\n  },\n\n  onChange    : function(){},\n  onShow      : function(){},\n  onHide      : function(){},\n\n  error   : {\n    method   : 'The method you called is not defined.'\n  },\n\n  className : {\n    active     : 'active',\n    animating  : 'animating',\n    dimmable   : 'dimmable',\n    dimmed     : 'dimmed',\n    dimmer     : 'dimmer',\n    disabled   : 'disabled',\n    hide       : 'hide',\n    legacy     : 'legacy',\n    pageDimmer : 'page',\n    show       : 'show'\n  },\n\n  selector: {\n    dimmer   : '> .ui.dimmer',\n    content  : '.ui.dimmer > .content, .ui.dimmer > .content > .center'","sourceCodeStart":686,"sourceCodeEnd":722,"githubUrl":"https://github.com/Semantic-Org/Semantic-UI/blob/597843ab84d565cccfd8fd7719416350ae73e734/src/definitions/modules/dimmer.js#L686-L722","documentation":"Dimmer's invoke() (dimmer.js:580-614) resolves the method query against the module instance; if the name/path matches no property it logs error.method (dimmer.js:612) and returns false. This is the standard Semantic UI 'you called a method that does not exist' for the dimmer module.","triggerScenarios":"Calling $('.ui.dimmer').dimmer('showw') (typo) or a non-existent behavior such as .dimmer('opacitiy', 0.5) or an unknown dotted path; the else branch at dimmer.js:611-613 logs the error.","commonSituations":"Typos; using a method from docs of a different version; calling dimmer on an element whose dimmer was destroyed (instance gone); copy-paste from examples that target another module.","solutions":["Use a valid dimmer behavior: 'show', 'hide', 'toggle', 'add content', 'set active', 'set dimmable', 'set dimmed', 'set disabled', 'set page dimmer', 'set opacity', 'set variation', 'remove ...', 'is active', 'is animating', 'is closable', 'is dimmer', 'is dimmable', 'is dimmed', 'is disabled', 'is enabled', 'is page', 'is page dimmer', 'get duration', 'get dimmer', 'setting', 'destroy'.","Check spelling against the dimmer settings/behaviors list.","Call .dimmer('setting') to inspect available config rather than guessing a method."],"exampleFix":"// before\n$('.ui.dimmer').dimmer('togle'); // typo -> [99]\n\n// after\n$('.ui.dimmer').dimmer('toggle');","handlingStrategy":"validation","validationCode":"var known = ['show','hide','toggle','add content','set active','set dimmable','set dimmed','set disabled','set page dimmer','set opacity','set variation','is active','is animating','is closable','is dimmer','is dimmable','is dimmed','is disabled','is enabled','is page','is page dimmer','get duration','get dimmer','setting','destroy'];\nif (known.indexOf(methodName) === -1) console.warn('Unknown dimmer method:', methodName);","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Use documented dimmer behaviors exactly.","Check spelling against the settings/behaviors list.","Inspect config with .dimmer('setting') rather than guessing method names."],"tags":["dimmer","method-dispatch","typo","semantic-ui","console-error"],"backgroundTag":null,"analyzedSha":"597843ab84d565cccfd8fd7719416350ae73e734","analyzedAt":"2026-08-13T01:44:23.827Z","schemaVersion":2},"datasetVersion":"2026-08-13T04:17:16.726Z"}