Martinez Martinez - 3 months ago 17
Javascript Question

Aurelia EventAggregator does not import correctly

I followed the tutorial http://aurelia.io/hub.html#/doc/article/aurelia/framework/latest/contact-manager-tutorial/1

Everthing looks fine. But after I import EventAggregator (import {EventAggregator} from 'aurelia-event-aggregator';), aurelia does not load it correctly. It is loaded from folder dist (compile js folder) instead of jspm_packages.

Does anybody know how to fix it?

Answer

You probably didnt run jspm install aurelia-event-aggregator. Run that and you should be back in business.

Comments