我想使用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-elements包中的一些元素而没有任何问题......
这是我的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-elements包。但它没有帮助。
答案 0 :(得分:0)
确定解决了这个问题。在Polymere指南中,他们在链接中使用了“ - ”。飞镖编辑器下载的包在链接中使用“_”。
所以它不是核心标题面板。它的core_header_panel。