ember-mode icon indicating copy to clipboard operation
ember-mode copied to clipboard

The autoimport for the @atrr decorator imports from the wrong location

Open abeforgit opened this issue 4 years ago • 1 comments

Import should be:

import { attr } from '@ember-data/model';

but instead ember-mode adds:

import { attr } from '@ember/data';

This is on ember octane, with the following versions

ember-cli: 3.20.1
ember-data: 3.21.0

Can look into this if you'd like me to, but it's not terribly urgent i think

abeforgit avatar Sep 04 '20 09:09 abeforgit

I think it is not only attr, but belongsTo and hasMany also are imported from @ember-data/model

rajasegar avatar Jun 21 '21 07:06 rajasegar