Ember-classic-decorator not support in v2 addon components, but works fine in normal addon components

Hello, I have v2 addon to use dependencies “ember-classic-decorator”: “^3.0.0”, import in my addon component get error message. But normal addon component It’s works fine.

How to I resolve this issue?

app.js:96 Ember.onerror handler - error.message Could not find module ember-classic-decorator imported from mail-template-editor/components/div-comp error Error: Could not find module ember-classic-decorator imported from mail-template-editor/components/div-comp

ember-classic-decorator is mostly a build-time tool to guide you through upgrading from pre-Octane to Octane.

If you’re making a v2 addon, I recommend just not using ember-classic-decorator.

But I need to use in our project any other configuration to resolve this issue for v2 addon setup

Why do you need ember-classic-decorator?

The best configuration is to configuration :wink:

1 Like