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 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.

Source

Thrown at src/definitions/modules/nag.js:481

  context       : false,
  detachable    : false,

  expires       : 30,
  domain        : false,
  path          : '/',

  // type of storage to use
  storageMethod : 'cookie',

  // value to store in dismissed localstorage/cookie
  key           : 'nag',
  value         : 'dismiss',

  error: {
    noCookieStorage : '$.cookie is not included. A storage solution is required.',
    noStorage       : 'Neither $.cookie or store is defined. A storage solution is required for storing state',
    method          : 'The method you called is not defined.'
  },

  className     : {
    bottom : 'bottom',
    fixed  : 'fixed'
  },

  selector      : {
    close : '.close.icon'
  },

  speed         : 500,
  easing        : 'easeOutQuad',

  onHide: function() {}

};

View on GitHub (pinned to 597843ab84)

Solutions

  1. Use a documented nag method: 'show', 'hide', 'clear', 'dismiss', 'storage', etc.
  2. Confirm the method exists for your installed version.
  3. Set silent:true to suppress the console message once you have confirmed it is benign.

Example fix

// before
$('.nag').nag('clearr'); // typo -> console.error
// after
$('.nag').nag('clear');
Defensive patterns

Strategy: validation

Validate before calling

// Validate against nag's method list before invoking.
var nagMethods = ['show','hide','clear','dismiss','storage','destroy'];
function callNag($el, method, args){
  if (nagMethods.indexOf(method) === -1) {
    throw new Error('Unknown nag method: ' + method);
  }
  return $el.nag(method, args);
}

Prevention

When it happens

Trigger: $('.nag').nag('clearr') (typo) — the dispatcher's lookup (nag.js ~390-398) finds no matching key and calls module.error(error.method, query).

Common situations: Typo in a method name, using an API from a different version.

Related errors


AI-assisted analysis of Semantic-Org/Semantic-UI@597843ab84 (2026-08-13). Data as JSON: /api/errors/75f09965e3fe1552. Report an issue: GitHub.