0

I'm running into the 404 traceur error when starting up my Angular2 app.

enter image description here

It seems a lot of people solved it by removing multiline comments.

Others updated their systemjs.config.js.

I've tried both of these and neither work.

I made a plunkr with all my typescript and config files.

My systemjs.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',
    },
    packages: {
      app: {
        main: './main.js',
        defaultExtension: 'js'
      },
      rxjs: {
        defaultExtension: 'js'
      },
      'angular2-in-memory-web-api': {
        main: './index.js',
        defaultExtension: 'js'
      }
    }
  });
})(this);
Community
  • 1
  • 1
itsclarke
  • 8,622
  • 6
  • 33
  • 50
  • where is your traceur library located? if it isn't at the root of your site, you'll have to map the location. – ps2goat Sep 23 '16 at 14:39

1 Answers1

0

Try adding 'use strict'; to the top of your systemjs config file. This happened to me a while back and if I recall, that solved it.

Daniel Patrick
  • 3,980
  • 6
  • 29
  • 49