« All deprecation guides

Deprecation Guide for @ember/error Package

until: 5.0.0
id: deprecate-ember-error

Use of @ember/error is deprecated. This package merely re-exports the native Error class. You should replace any uses of @ember/error with the native Error.

Before:

import EmberError from '@ember/error';

throw new EmberError("My Error");

After:

throw new Error("My Error");

The ember-error-codemod may be used to resolve this issue:

npx ember-error-codemod remove path/of/files/ or/some**/*glob.js