我想使用core-elements包中的core-scaffold元素。我导入了
<link rel="import" href="packages/core_elements/core-scaffold.html">
<link rel="import" href="packages/core_elements/core-header-panel.html">
<link rel="import" href="packages/core_elements/core-menu.html">
<link rel="import" href="packages/core_elements/core-item.html">放入我的html文件中。如果我想运行我得到的网站
Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost:8080/packages/core_elements/core-scaffold.html
Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost:8080/packages/core_elements/core-header-panel.html
Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost:8080/packages/core_elements/core-menu.html
Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost:8080/packages/core_elements/core-item.html我还使用了page-element包中的一些元素,没有任何问题……
这是我的pubspec.yaml文件
name: Test
description: A sample web application
dependencies:
browser: any
polymer: ">=0.15.0 <0.16.0"
core_elements: ">=0.3.0 <0.4.0"
paper_elements: ">=0.4.0 <0.5.0"
transformers:
- polymer我尝试使用pub get删除并重新加载core-element包。但这并不管用。
发布于 2014-10-05 04:21:43
ok解决了这个问题。在Polymere指南中,他们在链接中使用了"-“。dart编辑器下载的包在链接中使用"_“。
所以它不是core-header-panel。它的core_header_panel。
https://stackoverflow.com/questions/26195444
复制相似问题