I\'m using systemJS to manage my packages so I\'ve added those lines to my systemjs\'s configuration file :
{
map: { \'ng2-file-upload\': \'node_modules/ng
I would try this configuration:
{
map: { 'ng2-file-upload': 'node_modules/ng2-file-upload' },
packages: {
'ng2-file-upload': {
defaultExtension: 'js'
},
(...)
}
}
and import it this way:
import { FileDrop, FileUploader } from 'ng2-file-upload/ng2-file-upload';
here's my systemjs.config that works:
var map = {
'app': 'app', // 'dist',
'rxjs': 'node_modules/rxjs',
'angular2-in-memory-web-api': 'node_modules/angular2-in-memory-web-api',
'@angular': 'node_modules/@angular',
'ng2-file-upload': 'node_modules/ng2-file-upload'
};
var packages = {
'app': { main: 'main.js', defaultExtension: 'js' },
'rxjs': { defaultExtension: 'js' },
'angular2-in-memory-web-api': { defaultExtension: 'js' },
'ng2-file-upload': { main: 'ng2-file-upload.js', defaultExtension: 'js' }
};