emberjs/ember.js · error

WARNING: ${message}

Error message

WARNING: ${message}

What it means

Error "WARNING: ${message}" thrown in emberjs/ember.js.

Source

Thrown at packages/@ember/debug/lib/warn.ts:66

          <li> <code>id</code> - An id of the warning in the form of <code>package-name.specific-warning</code>.</li>
        </ul>
      <li> <code>next</code> - A function that calls into the previously registered handler.</li>
    </ul>

    @public
    @static
    @method registerWarnHandler
    @for @ember/debug
    @param handler {Function} A function to handle warnings.
    @since 2.1.0
  */
  registerHandler = function registerHandler(handler) {
    genericRegisterHandler('warn', handler);
  };

  registerHandler(function logWarning(message) {
    /* eslint-disable no-console */
    console.warn(`WARNING: ${message}`);
    /* eslint-enable no-console */
  });

  missingOptionsDeprecation =
    'When calling `warn` you ' +
    'must provide an `options` hash as the third parameter.  ' +
    '`options` should include an `id` property.';
  missingOptionsIdDeprecation = 'When calling `warn` you must provide `id` in options.';

  /**
    Display a warning with the provided message.

    * In a production build, this method is defined as an empty function (NOP).
    Uses of this method in Ember itself are stripped from the ember.prod.js build.

    ```javascript
    import { warn } from '@ember/debug';
    import tomsterCount from './tomster-counter'; // a module in my project

View on GitHub (pinned to 26f97246a8)

When it happens

Trigger: Thrown at packages/@ember/debug/lib/warn.ts:66 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/0fdf5c003935b04d. Report an issue: GitHub.