Followers

Sunday, 4 September 2016

Error: (SystemJS) XHR error (404 Not Found) loading RXjs

Source: stackoverflow.com --- Saturday, September 03, 2016
I have a nodeJS / Angular2 based site which works fine on my local Windows 10 machine. However, when I try to deploy to Heroku and access the site, the front end console (Chrome) throws the following error and the site doesn't load. zone.js:101 GET http://ift.tt/2c9G8bN 404 (Not Found) my systemjs.config.js contains this: (function(global) { // map tells the System loader where to look for things var map = { 'app': '/app', // 'dist', '@angular': '/node_modules/@angular', 'angular2-in-memory-web-api': '/node_modules/angular2-in-memory-web-api', 'rxjs': '/node_modules/rxjs' }; // packages tells the System loader how to load when no filename and/or no extension var packages = { 'app': { main: 'main.js', defaultExtension: 'js' }, 'rxjs': { defaultExtension: 'js' }, 'angular2-in-memory-web-api': { main: 'index.js', defaultExtension: 'js' }, }; System.config(config); })(this); and my index.html contains: ... ...



from Windows http://ift.tt/2c9FYkD

No comments:

Post a Comment