Martinez Martinez - 1 year ago 54
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?

Answer Source

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