Gbuomprisco / ng2-expansion-panels

Expansion Panels component for Angular 2
18 stars 3 forks source link

404 error - .../dist/dist/modules/ng2-expansion-panels.module.js #1

Closed randyangeles closed 8 years ago

randyangeles commented 8 years ago

Hi,

Getting the 404 error above when I try to run a project using the SystemJS loader.

It looks like the ng2-expansion-panels.module.js file isn't getting included in the node_modules folder?

Wondering if this is an issue or am I missing something?

System-config.js setup (we copy all .js files from node_modules to wwwroot/lib using a gulp task)

map: {
    //...
    'ng2-expansion-panels': 'lib/ng2-expansion-panels'
}
packages: {
    //...
    'ng2-expansion-panels': {
        main: 'dist/index.js',
        defaultExtension: 'js',
     }
}

Workaround I can the project to run by replacing index.js with the following:

"use strict";
var ng2_expansion_panels_module_1 = require('./ng2-expansion-panels.bundle');
exports.ExpansionPanelsModule = ng2_expansion_panels_module_1.ExpansionPanelsModule;
//# sourceMappingURL=index.js.map
Gbuomprisco commented 8 years ago

Hi @randyangeles,

can you try replacing index.js with ng2-expansion-panels.bundle.js?

randyangeles commented 8 years ago

That worked! Thanks @Gbuomprisco! Closing this issue.