Uable to generate adapter application

Hello everyone , i am quite new to ember.js i have been working on the tutorials and having issue with generating adapter application . when i run the command ember generate adapter application i can see message saying installing adapter but no file is getting generated in the folder structure .

Hmmmm that seems pretty strange, possibly a bug. What does your package.json look like?

Obviously it’s annoying not to be able to use the generators but in the meantime you can just paste the following into app/adapters/application.js:

import DS from 'ember-data';

export default DS.JSONAPIAdapter.extend({
  namespace: 'api'
});
1 Like

Oh actually I forgot about this but if you’re running Ember Data 3.11 there is a known bug with the model blueprint so that could be what you’re seeing. There should be a fix published soon, or you could temporarily downgrade to Ember Data 3.10.

Indeed! if you want to follow along, @guarav has introduced a fix here: https://github.com/emberjs/data/pull/6274

1 Like