{"record":{"id":"75f09965e3fe1552","repo":"Semantic-Org/Semantic-UI","slug":"the-method-you-called-is-not-defined-75f099","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/nag.js","lineNumber":481,"sourceCode":"\n  context       : false,\n  detachable    : false,\n\n  expires       : 30,\n  domain        : false,\n  path          : '/',\n\n  // type of storage to use\n  storageMethod : 'cookie',\n\n  // value to store in dismissed localstorage/cookie\n  key           : 'nag',\n  value         : 'dismiss',\n\n  error: {\n    noCookieStorage : '$.cookie is not included. A storage solution is required.',\n    noStorage       : 'Neither $.cookie or store is defined. A storage solution is required for storing state',\n    method          : 'The method you called is not defined.'\n  },\n\n  className     : {\n    bottom : 'bottom',\n    fixed  : 'fixed'\n  },\n\n  selector      : {\n    close : '.close.icon'\n  },\n\n  speed         : 500,\n  easing        : 'easeOutQuad',\n\n  onHide: function() {}\n\n};\n","sourceCodeStart":463,"sourceCodeEnd":499,"githubUrl":"https://github.com/Semantic-Org/Semantic-UI/blob/597843ab84d565cccfd8fd7719416350ae73e734/src/definitions/modules/nag.js#L463-L499","documentation":"Emitted by Nag's invoke() dispatcher (nag.js:397) when a string method name does not resolve to any property on the nag module instance. Unlike the dead-config modules, Nag actually logs this via module.error (nag.js:310), a bound console.error gated by settings.silent. It is not a thrown exception.","triggerScenarios":"$('.nag').nag('clearr') (typo) — the dispatcher's lookup (nag.js ~390-398) finds no matching key and calls module.error(error.method, query).","commonSituations":"Typo in a method name, using an API from a different version.","solutions":["Use a documented nag method: 'show', 'hide', 'clear', 'dismiss', 'storage', etc.","Confirm the method exists for your installed version.","Set silent:true to suppress the console message once you have confirmed it is benign."],"exampleFix":"// before\n$('.nag').nag('clearr'); // typo -> console.error\n// after\n$('.nag').nag('clear');","handlingStrategy":"validation","validationCode":"// Validate against nag's method list before invoking.\nvar nagMethods = ['show','hide','clear','dismiss','storage','destroy'];\nfunction callNag($el, method, args){\n  if (nagMethods.indexOf(method) === -1) {\n    throw new Error('Unknown nag method: ' + method);\n  }\n  return $el.nag(method, args);\n}","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Pin your Semantic UI version so the nag 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 (nag.js:310) in production after confirming it is benign."],"tags":["nag","method-dispatch"],"backgroundTag":null,"analyzedSha":"597843ab84d565cccfd8fd7719416350ae73e734","analyzedAt":"2026-08-13T01:44:23.827Z","schemaVersion":2},"datasetVersion":"2026-08-13T04:17:16.726Z"}