Martinez Martinez - 2 months ago 8
Javascript Question

Aurelia EventAggregator does not import correctly

I followed the tutorial

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?


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