Semantic-Org/Semantic-UI · info

The method you called is not defined.

Error message

The method you called is not defined.

What it means

Declared in popup.js settings.error.method but the module's invoke() (popup.js:1251-1285) does NOT log it — the else branch (lines 1282-1284) simply returns false. So this message is never emitted by popup.js. An unknown method call on a popup fails silently rather than printing this string.

Source

Thrown at src/definitions/modules/popup.js:1456

  duration       : 200,
  transition     : 'scale',

  // distance away from activating element in px
  distanceAway   : 0,

  // number of pixels an element is allowed to be "offstage" for a position to be chosen (allows for rounding)
  jitter         : 2,

  // offset on aligning axis from calculated position
  offset         : 0,

  // maximum times to look for a position before failing (9 positions total)
  maxSearchDepth : 15,

  error: {
    invalidPosition : 'The position you specified is not a valid position',
    cannotPlace     : 'Popup does not fit within the boundaries of the viewport',
    method          : 'The method you called is not defined.',
    noTransition    : 'This module requires ui transitions <https://github.com/Semantic-Org/UI-Transition>',
    notFound        : 'The target or popup you specified does not exist on the page'
  },

  metadata: {
    activator : 'activator',
    content   : 'content',
    html      : 'html',
    offset    : 'offset',
    position  : 'position',
    title     : 'title',
    variation : 'variation'
  },

  className   : {
    active       : 'active',
    basic        : 'basic',
    animating    : 'animating',

View on GitHub (pinned to 597843ab84)

Solutions

  1. No action needed for the message; to debug the silent miss, confirm the method name against popup behaviors ('show', 'hide', 'toggle', 'get popup', 'change content', 'set content', 'reposition', etc.).
  2. Check the return value/chain after the call to detect the no-op.
  3. If you want unknown calls flagged, patch invoke's else branch in a fork to log error.method.
Defensive patterns

Strategy: validation

Validate before calling

// Popup invoke is silent on unknown methods; assert yourself
var known = ['show','hide','toggle','get popup','set content','change content','reposition','hide all','show all','destroy'];
if (known.indexOf(methodName) === -1) console.warn('Unknown popup method:', methodName);

Prevention

When it happens

Trigger: No active path in popup.js emits it. Calling $('.btn').popup('nope') resolves nothing and returns undefined without a console error in this version.

Common situations: Inspecting settings and misattributing a console line to popup; using a forked build whose invoke was patched; confusing popup with modules (sidebar/progress/dimmer) whose invoke does log error.method.

Related errors


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