Rafael
Rafael

Reputation: 2753

Routing from Aurelia TypeScript-Kit from Getting Started doesn't work

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

Answers (1)

David Pugh
David Pugh

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

Related Questions