jeudi 26 mars 2015

Ember CLI generate component in an addon

I try to make an addon using ember-cli. Here it is step by step what I have done so far:



sudo ember addon test-addon
cd test-addon
sudo ember serve


now the server runs and on localhost:4200 I can see the test/dummy app's application hbs.



Welcome to Ember.js



Its time to make some components for the addon:



sudo ember g component my-form


In the tests/dummy/app/templates/application.hbs I added {{my-form}}


And now I'm getting the following js error:


Uncaught Error: Could not find module test-addon/components/my-form imported from dummy/components/my-form





Aucun commentaire:

Enregistrer un commentaire