External library Aurelia Jspm

So I did:

$ jspm install github:Eonasdan/bootstrap-datetimepicker
$ jspm install npm:moment

      

Then at the top of my js file, I did:

import moment from 'moment';
import {datepicker} from 'eonasdan/bootstrap-datetimepicker';
import 'eonasdan/bootstrap-datetimepicker/build/css/bootstrap-datetimepicker.min.css!';

      

In my browser, it looks for /dist/eonasdan/bootstrap-datetimepicker.js

which returns 404

, why isn't it using the system map to find out where the actual file is? Or what ever it should do ...

As a side note, she doesn't do it for the moment.js

way it was supposed to.

+3


source to share


1 answer


You installed Eonasdan/bootstrap-datetimepicker

but import from Eonasdan/bootstrap-datetimepicker

(uppercase E versus lowercase e).



Check your system config (config.js) what key is used on the map. This is where the loader checks to build the package path.

+6


source







All Articles