emberjs/ember.js · error

DEPRECATION: ${updatedMessage}${stackStr}

Error message

DEPRECATION: ${updatedMessage}${stackStr}

What it means

Error "DEPRECATION: ${updatedMessage}${stackStr}" thrown in emberjs/ember.js.

Source

Thrown at packages/@ember/debug/lib/deprecate.ts:156

              .replace(/^([^(]+?)([\n$])/gm, '{anonymous}($1)$2')
              .replace(/^Object.<anonymous>\s*\(([^)]+)\)/gm, '{anonymous}($1)')
              .split('\n');
            stack.shift();
          } else {
            // Firefox
            stack = error.stack
              .replace(/(?:\n@:0)?\s+$/m, '')
              .replace(/^\(/gm, '{anonymous}(')
              .split('\n');
          }

          stackStr = `\n    ${stack.slice(2).join('\n    ')}`;
        }
      }

      let updatedMessage = formatMessage(message, options);

      console.warn(`DEPRECATION: ${updatedMessage}${stackStr}`); // eslint-disable-line no-console
    } else {
      next(message, options);
    }
  });

  registerHandler(function raiseOnDeprecation(message, options, next) {
    if (ENV.RAISE_ON_DEPRECATION) {
      let updatedMessage = formatMessage(message);

      throw new Error(updatedMessage);
    } else {
      next(message, options);
    }
  });

  missingOptionsDeprecation =
    'When calling `deprecate` you ' +
    'must provide an `options` hash as the third parameter.  ' +

View on GitHub (pinned to 26f97246a8)

When it happens

Trigger: Thrown at packages/@ember/debug/lib/deprecate.ts:156 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of emberjs/ember.js@26f97246a8 (2026-09-01). Data as JSON: /api/errors/4880861e1075b36e. Report an issue: GitHub.