Gbuomprisco / ng2-material-dropdown

Angular 2 Material-like Dropdown Component
MIT License
37 stars 54 forks source link

zone.js:1382 GET http://localhost:3000/node_modules/ng2-material-dropdown/dist/src/index.js 404 (Not Found) #13

Closed Nikolay-Uvarov closed 8 years ago

Nikolay-Uvarov commented 8 years ago

system.config.js

(function (global) {
    System.config({
        paths: {
          'npm:': 'node_modules/'
        },
        map: {
          app: 'app',
          '@angular/core': 'npm:@angular/core/bundles/core.umd.js',
          '@angular/common': 'npm:@angular/common/bundles/common.umd.js',
          '@angular/compiler': 'npm:@angular/compiler/bundles/compiler.umd.js',
          '@angular/platform-browser': 'npm:@angular/platform-browser/bundles/platform-browser.umd.js',
          '@angular/platform-browser-dynamic': 'npm:@angular/platform-browser-dynamic/bundles/platform-browser-dynamic.umd.js',
          '@angular/http': 'npm:@angular/http/bundles/http.umd.js',
          '@angular/router': 'npm:@angular/router/bundles/router.umd.js',
          '@angular/forms': 'npm:@angular/forms/bundles/forms.umd.js',
          'rxjs':                       'npm:rxjs',
          'angular2-in-memory-web-api': 'npm:angular2-in-memory-web-api',
        'ng2-filter-pipe': 'node_modules/ng2-filter-pipe',
        'ng2-auto-complete': 'node_modules/ng2-auto-complete/dist',
        'lodash': 'node_modules/lodash',
        'ng2-material-dropdown': 'node_modules/ng2-material-dropdown'
        },

        packages: {
          app: {
            main: './main.js',
            defaultExtension: 'js'
          },
          rxjs: {
            defaultExtension: 'js'
          },
          'angular2-in-memory-web-api': {
            main: './index.js',
            defaultExtension: 'js'
          },
            'ng2-filter-pipe': {
                main: 'ng2-filter.pipe.min.js',
                defaultExtension: 'js'
            },
            'ng2-auto-complete' : {
                main: 'ng2-auto-complete.umd.js',
                defaultExtension: 'js'
            },
            'lodash': {
                main: 'index.js',
                defaultExtension: 'js'
            },
       'ng2-material-dropdown': {
                main: 'index.js',
                defaultExtension: 'js'
            }
        }
      });
})(this);

I have a probplem "zone.js:1382 GET http://localhost:3000/node_modules/ng2-material-dropdown/dist/src/index.js 404 (Not Found)" The file index.js does not exist in folder src, only index.d.

Gbuomprisco commented 8 years ago

Hi @Nikolay-Uvarov ,

can you try replacing index.js wih dist/ng2-dropdown.bundle.js?