Angular2: ng2-file-upload : cannot load it correctly using SystemJS

后端 未结 2 936
时光说笑
时光说笑 2021-01-20 15:39

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         


        
2条回答
  •  清酒与你
    2021-01-20 16:45

    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' }
    };
    

提交回复
热议问题