Angular quickstart AOT, error 404 on /traceur

41 views
Skip to first unread message

Marco Bisetto

unread,
Feb 4, 2017, 4:12:11 PM2/4/17
to Angular and AngularJS discussion



Hi all,

Today I cloned the Angular quickstart from github and tried it with JIT compiling with positive result, then followed the steps of the angular.io cookbook for Ahead-of-Time compiling https://angular.io/docs/ts/latest/cookbook/aot-compiler.html

The application compiles without error with ngc as requested from the documentation. The aot/ subdirectory seems correctly populated by the ngfactory files and node_modules.

When served, the app stops after sending a GET request to the path /traceur with a 404 response.

I'm stuck. Any suggestion?

Regards.
Marco


Sander Elias

unread,
Feb 5, 2017, 2:00:54 AM2/5/17
to Angular and AngularJS discussion
Hi Marco,

Traceur is an e6 to es5 compiler. You don't need that in an AOT compiled version of your app. I think it's part of your systemjs configuration. Taking it out might just do the trick.

Regards
Sander

Marco Bisetto

unread,
Feb 6, 2017, 12:08:07 PM2/6/17
to Angular and AngularJS discussion
Hi Sander,

Yes, systemjs was the source of the problem. I'm not able to configure it correctly, so I completely got rid of it going on in the cookbook and using "rollup". Now index.html loads only build.js generated by rollup and that makes sense. It works.

Thank you.

Regards
Marco

Reply all
Reply to author
Forward
0 new messages