Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

aurelia Error loading http://127.0.0.1:8080/src/main.ts

In order to learn Aurelia, I'm just following the quickstart tutorial of Aurelia.js framework with basic-aurelia-project example but I got this error in the console at the first attempt to render Todos:

Error: (SystemJS) Error: XHR error (404 Not Found) loading http://127.0.0.1:8080/src/main.ts
    Error loading http://127.0.0.1:8080/src/main.ts

I looked at the src files but could not figure out where this main.ts should come from. It's really furstrating as the firs step. What could have gone wrong here?

like image 979
Karlom Avatar asked Mar 09 '26 22:03

Karlom


1 Answers

I was following the same tutorial as Karlom, and got the same error when starting up http-server -o -c-1. "GET /src/main.ts" Error (404): "Not found"

The tutorial is using javascript, but when the application starts up the server looks for main.ts not main.js.

in index.html change src="scripts/config-typescript.js" to src="scripts/config-esnext.js"

like image 142
Bender Avatar answered Mar 11 '26 11:03

Bender



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!