I am trying to create my first Ember AddOn and I am stuck importing it into an Ember project. I created an addon and posted it on github as follows:
ember-cli$ ember addon test-addon ember-cli$ cd test-addon ember-cli/test-addon$ git remote add origin <github-url>
Then from my project I install the addon:
test-app$ ember install <github-url>
And finally, try importing it into the route:
# app/rotues/index.coffee import TestAddon from 'test-addon'
But I get this error on the console:
Uncaught Error: Could not find module `test-addon` imported from `test-app/routes/index`
Any ideas I'm wrong about? I see the addon in the node_modules directory, but not in bower_components . I think (tm) this is my problem, but I'm not sure what else I need to do to configure my addon.
source share