lundi 25 avril 2016

Unexpected generated emberjs code

I'm trying to go through an ember cli tutorial. When I generate a model with:

ember generate model user

, the tutorial says I should get a user.js class like:

import DS from 'ember-data';
export default
DS.Model.extend({
});

but I get:

import Model from 'ember-data/model';

export default Model.extend({

});

I'm not sure what I may have done to cause this. Do I have different version of Ember CLI, have I perhaps missed something in my setup, or something else? I'm not sure if I can ignore it and continue or if I should resolve this issue first.

Thanks,

Bob




Aucun commentaire:

Enregistrer un commentaire