Reputation: 14417
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's looking for /dist/eonasdan/bootstrap-datetimepicker.js
which is returning a 404
, why isn't it using the system map to find out where the actual file is located? Or what ever it is supposed to do....
As a side note, it doesn't do it for moment.js
like it's supposed to
Upvotes: 3
Views: 2039
Reputation: 76
You installed Eonasdan/bootstrap-datetimepicker
but import from eonasdan/bootstrap-datetimepicker
(uppercase E vs. lowercase e).
Check in your System config (config.js) what key is used in the map. That is where the loader checks to build the path to the package.
Upvotes: 6