toranb / ember-data-django-rest-adapter

An ember-data adapter for django web applications powered by the django-rest-framework
MIT License
152 stars 26 forks source link

ember-addon after ember-cli-ember-data does not exist #103

Closed jearle closed 10 years ago

jearle commented 10 years ago

When trying to fire the command ember-serve i throws an error. Stack is at the bottom.

The issue seems to be that you are looking for a package ember-cli-ember-data in your package.json file:

  "ember-addon": {
    "after": "ember-cli-ember-data"
  },

Maybe this is deprecated? I do have ember-data in my modules.

TypeError: Cannot read property 'pkg' of null
    at Function.Addon.resolvePath (/Users/jearle/projects/mallhawk/frontend/node_modules/ember-cli/lib/models/addon.js:283:18)
    at Function.Addon.lookup (/Users/jearle/projects/mallhawk/frontend/node_modules/ember-cli/lib/models/addon.js:298:22)
    at /Users/jearle/projects/mallhawk/frontend/node_modules/ember-cli/lib/models/project.js:181:34
    at visit (/Users/jearle/projects/mallhawk/frontend/node_modules/ember-cli/lib/utilities/DAG.js:23:3)
    at visit (/Users/jearle/projects/mallhawk/frontend/node_modules/ember-cli/lib/utilities/DAG.js:21:5)
    at DAG.topsort (/Users/jearle/projects/mallhawk/frontend/node_modules/ember-cli/lib/utilities/DAG.js:82:7)
    at Project.initializeAddons (/Users/jearle/projects/mallhawk/frontend/node_modules/ember-cli/lib/models/project.js:178:9)
    at Project.eachAddonCommand (/Users/jearle/projects/mallhawk/frontend/node_modules/ember-cli/lib/models/project.js:206:10)
    at module.exports (/Users/jearle/projects/mallhawk/frontend/node_modules/ember-cli/lib/cli/lookup-command.js:52:13)
    at CLI.<anonymous> (/Users/jearle/projects/mallhawk/frontend/node_modules/ember-cli/lib/cli/cli.js:31:26)
dustinfarris commented 10 years ago

This is an issue in ember-django-adapter. Thanks for the report.

ewalti commented 10 years ago

I'm running in to this issue upgrading to ember CLI 0.0.47. How does one fix this issue? Change to "after": "ember-data"?

dustinfarris commented 10 years ago

@ewalti there's a fix for this. will release soon.

dustinfarris commented 10 years ago

Fixed in 0.4.0