A dev-time only decorator to aid migrating from Ember's classic class system to native classes in Ember Octane. The @classic decorator flags classes that still rely on classic APIs (reopen, reopenClass) and prevents timing bugs with init/constructor. Version 4.0.0 is the latest stable, requires ember-source >= 4.0.0. It is no longer needed and can be safely removed; it must be removed before switching to Vite. Ships TypeScript types. Low maintenance, intended for transitional use.
npm install ember-classic-decoratorNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Install the addon, configure ESLint, and use @classic decorator on classic-style Ember classes to suppress assertions and aid migration.
Remove ember-classic-decorator from package.json and delete any @classic decorators.
Remove the addon before migrating to Vite.
Use eslint rules to catch classic APIs rather than depending on runtime assertions.
Migrate all classes to native syntax and remove @classic decorator.
Avoid constructor in subclasses that override init; use init instead.
Add @classic decorator to the class definition, or remove the reopen call.
Add @classic decorator or refactor away from reopenClass.
Add @classic decorator or convert usage to modern alternatives.
Add @classic decorator and ensure eslint rules are active to catch these errors.