从 Aurelia TypeScript-Kit 开始的路由不起作用

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

我已经下载了 JavaScriptTypeScript 套件,并按照 Aurelia 说明从 [=11= 进行路由] 页

JavaScript 示例工作正常,但当应用程序 运行:

时,TypeScript 在控制台上显示以下错误
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.

有没有人遇到过同样的问题?

Rob Eisenberg 发布了我在 github 上提出的问题的答案。 https://github.com/aurelia/beginner-kits/issues/12

他说要确保路由器的 moduleId 看起来像这样./welcome.