shlomiassaf / ngx-modialog

Modal / Dialog for Angular
http://shlomiassaf.github.io/ngx-modialog
MIT License
686 stars 242 forks source link

Failed to load resource: the server responded with a status of 404 (Not Found) #192

Closed BenDevelopment closed 8 years ago

BenDevelopment commented 8 years ago

I've followed the quick walk through and when I run my project I have these errors :

Failed to load resource: the server responded with a status of 404 (Not Found)
localhost/:23 Error: Error: XHR error (404 Not Found) loading http://localhost:55976/angular2-modal(…)(anonymous function) @ localhost/:23
http://localhost:55976/angular2-modal/plugins/bootstrap Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost:55976/angular2-modal Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost:55976/angular2-modal/plugins/bootstrap Failed to load resource: the server responded with a status of 404 (Not Found)

Maybe the walk through is not up to date ? I'm using angular2 rc6.

sberlinches commented 8 years ago

RC7 here. Are we missing something?

belguzmani commented 8 years ago

I solved this problem by adding the following in systemjs.confg.js

map: {
  ...
  ...
  'angular2-modal' : 'npm:angular2-modal',
  'angular2-modal/plugins/bootstrap' : 'npm:angular2-modal/plugins/bootstrap'
},
packages: {
  ...
  ...
  'angular2-modal': {
    main: './index.js',
    defaultExtension: 'js'
  },
  'angular2-modal/plugins/bootstrap' : {
    main: './index.js',
    defaultExtension: 'js'
}