【发布时间】:2013-02-01 18:37:11
【问题描述】:
我在运行 WebUI 新项目生成代码时遇到错误:
Failed to load resource: the server responded with a status of 404 (Not Found)
http://127.0.0.1:3030/Applications/dart/dart-sdk/pkg/web_ui/web_ui.dart
Failed to load a file http://127.0.0.1:3030/Applications/dart/dart-sdk/pkg/web_ui/web_ui.dart
我已经运行了pub install,并且包是从项目/包目录符号链接的。
我应该设置一个标志吗?
pub.yaml:
name: test
description: A sample WebUI application
dependencies:
browser: any
js: any
web_ui: any
【问题讨论】:
-
这是来自 Dart Editor 生成的全新项目吗?您能列出导致错误的步骤吗?
-
另外,您可以粘贴到您的 pubspec.yaml 中吗?我怀疑你有一个错误,因为 web_ui 不是 pkg 包。
-
在 OSX 上运行构建 18300。我使用 web_ui 库创建了一个新的 Web 应用程序。右键单击项目 html 文件(即 test.html),
Run in Dartium。out/包含test.dart、test.html、test.html_bootstrap.dart和xclickcounter.dart。粘贴上面的pub.yaml。 -
我刚试过,编辑器版本相同。使用示例内容创建了示例应用程序。我用完了/test.html,它起作用了。您的项目是否可以查看,例如在 Github 上?您可以尝试创建一个新的临时项目吗?
-
另外,尝试删除 packages/ 目录,看看它是否被重新创建。
标签: dart dart-webui dart-editor