我已经下载了JavaScript和TypeScript工具包,并遵循了从开始页面进行路由的奥雷利亚指令。
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.有没有人遇到过同样的问题?
发布于 2015-12-11 05:52:21
罗布·艾森伯格( Rob Eisenberg )在github上发布了我的问题答案。https://github.com/aurelia/beginner-kits/issues/12
他说要确保路由器的moduleId看起来像这样。/欢迎。
https://stackoverflow.com/questions/34209669
复制相似问题