404 for directives and components #488

Open
opened 2016-11-10 15:03:13 +00:00 by Chronoss93 · 1 comment
Chronoss93 commented 2016-11-10 15:03:13 +00:00 (Migrated from github.com)

Hi, I'm trying to import file as ng2-module and face 404 for SubComponents of ng2-module.

JFYI: systemjs.config.js include 'ng2-file-upload/ng2-file-upload':'npm:ng2-file-upload/bundles/ng2-file-upload.js'

image

Source https://github.com/Chronoss93/J-stat-ng2

Hi, I'm trying to import file as ng2-module and face 404 for SubComponents of ng2-module. JFYI: systemjs.config.js include 'ng2-file-upload/ng2-file-upload':'npm:ng2-file-upload/bundles/ng2-file-upload.js' ![image](https://cloud.githubusercontent.com/assets/7902798/20181530/3f72d306-a767-11e6-9f26-49f609b528b9.png) Source https://github.com/Chronoss93/J-stat-ng2
Chronoss93 commented 2016-12-03 14:16:03 +00:00 (Migrated from github.com)

Solution:
systemjs.config.js

  map: {
             'ng2-file-upload/ng2-file-upload': 'npm:ng2-file-upload', 
}

 packages: {
'ng2-file-upload/ng2-file-upload': {
                main: './ng2-file-upload.js',
                defaultExtension: 'js'
            }
}
Solution: systemjs.config.js ``` map: { 'ng2-file-upload/ng2-file-upload': 'npm:ng2-file-upload', } packages: { 'ng2-file-upload/ng2-file-upload': { main: './ng2-file-upload.js', defaultExtension: 'js' } } ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dc/ng2-file-upload#488