{"record":{"id":"a732f09acce93610","repo":"Semantic-Org/Semantic-UI","slug":"the-method-you-called-is-not-defined-a732f0","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":"info","filePath":"src/definitions/modules/shape.js","lineNumber":901,"sourceCode":"  width: 'initial',\n\n  // height during animation, can be set to 'auto', 'initial', 'next' or pixel amount\n  height: 'initial',\n\n  // callback occurs on side change\n  beforeChange : function() {},\n  onChange     : function() {},\n\n  // allow animation to same side\n  allowRepeats: false,\n\n  // animation duration\n  duration   : false,\n\n  // possible errors\n  error: {\n    side   : 'You tried to switch to a side that does not exist.',\n    method : 'The method you called is not defined'\n  },\n\n  // classnames used\n  className   : {\n    animating : 'animating',\n    hidden    : 'hidden',\n    loading   : 'loading',\n    active    : 'active'\n  },\n\n  // selectors used\n  selector    : {\n    sides : '.sides',\n    side  : '.side'\n  }\n\n};\n","sourceCodeStart":883,"sourceCodeEnd":919,"githubUrl":"https://github.com/Semantic-Org/Semantic-UI/blob/597843ab84d565cccfd8fd7719416350ae73e734/src/definitions/modules/shape.js#L883-L919","documentation":"Defined under shape.error.method, but Shape's invoke() dispatcher (shape.js:783-818) never calls module.error(error.method): an unknown method name leaves found undefined and returns silently. The string is dead config in this version. module.error is a bound console.error (shape.js:725), not thrown.","triggerScenarios":"$('.shape').shape('flipp') (typo) — dispatcher finds no matching key, returns undefined, no console output.","commonSituations":"Typo in method name, version drift.","solutions":["Use a documented shape method: 'flip up', 'flip down', 'flip left', 'flip right', 'set next side', 'refresh'.","Confirm the method exists for your installed version."],"exampleFix":"// before\n$('.shape').shape('flipp'); // typo -> silent no-op\n// after\n$('.shape').shape('flip up');","handlingStrategy":"validation","validationCode":"// Shape invoke() silently no-ops on unknown methods; validate first.\nvar shapeMethods = ['flip up','flip down','flip left','flip right','flip over','flip back','set next side','refresh','reset','is animating','destroy'];\nfunction callShape($el, method, args){\n  if (shapeMethods.indexOf(method) === -1) {\n    throw new Error('Unknown shape method: ' + method);\n  }\n  return $el.shape(method, args);\n}","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Treat an undefined shape() return as a likely bad method name.","Pin the Semantic UI version; shape APIs differ across releases.","These are console.error logs (shape.js:725), not exceptions — validate explicitly."],"tags":["shape","method-dispatch","dead-code"],"backgroundTag":null,"analyzedSha":"597843ab84d565cccfd8fd7719416350ae73e734","analyzedAt":"2026-08-13T01:44:23.827Z","schemaVersion":2},"datasetVersion":"2026-08-13T04:17:16.726Z"}