gpt4 book ai didi

javascript - 入门中的 Aurelia TypeScript-Kit 路由不起作用

转载 作者:行者123 更新时间:2023-12-03 08:09:24 25 4
gpt4 key购买 nike

我已经下载了 JavaScriptTypeScript 套件,并按照 Aurelia 说明从 getting started 进行路由。页面

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。

关于javascript - 入门中的 Aurelia TypeScript-Kit 路由不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34209669/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com