Model generation not working

Just getting started with Ember so excuse me if I’m doing something stupid! I’m typing ember g model task and the output I get is:

installing model
installing model-test

And the model is not actually created, the only thing I have in my app/models directory is .gitkeep file!

Any ideas?

Welcome @the_lar! You are doing the right thing; there was just a bug that was recently fixed in ember-data. See Uable to generate adapter application for related discussion.

If you would like to be unblocked, try updating your project’s package.json ember-data entry to 3.10 instead of 3.11:

    "ember-data": "^3.10.0",

Oh great! Thanks @efx I’ll give that a go! I assumed it was me going mad or something!

1 Like