Reputation: 2753
I've downloaded both JavaScript and TypeScript kit and followed Aurelia instructions for routing from the getting started page
The JavaScript example works fine but the TypeScript shows the following error on the console when the app is run:
Failed to load resource: the server responded with a status of 404 (Not Found)
ERROR [app-router] Error: XHR error (404 Not Found) loading http://localhost:8080/welcome.js
ERROR [app-router] Router navigation failed, and no previous location could be restored.
Does anyone have experienced the same problem?
Upvotes: 0
Views: 237
Reputation: 992
Rob Eisenberg posted an answer to my issue I put up on github. https://github.com/aurelia/beginner-kits/issues/12
He said to make sure the moduleId of the router looks like this ./welcome.
Upvotes: 1