Dart webcomponents.js失败,出现错误404

Dart webcomponents.js失败,出现错误404,dart,dart-polymer,dart-pub,Dart,Dart Polymer,Dart Pub,在运行与webcomponents.js相关的dart应用程序时,我在控制台中看到异常 一切都按预期运行,我是否应该忽略此异常 Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:8080/packages/web_components/webcomponents.js pubspec.yaml: name: alm description: alm

在运行与webcomponents.js相关的dart应用程序时,我在控制台中看到异常 一切都按预期运行,我是否应该忽略此异常

Failed to load resource: the server responded with a status of 404 (Not Found)
  http://localhost:8080/packages/web_components/webcomponents.js

pubspec.yaml:

name: alm
description: alm
dependencies:
  browser: any
  # bootjack: any
  polymer: ">0.15.3"
  paper_elements: any
transformers:
- polymer:
    entry_points:
      - web/index.html
index.html


试验
有色的
残废
index.dart:

导入'dart:html';
进口“包装:聚合物/聚合物.dart”;
//导入“包:bootjack/bootjack.dart”;
导入“包装:纸元素/纸按钮.省道”;
导入“包装:纸元素/纸输入.dart”;
void main(){
打印(“开始”);
initPolymer()运行(){
聚合物。onReady。然后((){
DivElement div=querySelector(“更多按钮”);
第123款;
PaperButton y=新的PaperButton();
y、 text=“KOTS”;
y、 上升=真;
第二节(y);
PaperInput x=新的PaperInput();
x、 value=“KOTS”;
div.append(x);
});
});
打印(“结束”);
}

Fox32建议我删除我的~/.pub文件夹,然后再次执行pub get。 做完这件事后,我跑进了一家酒吧,一直没记错

Timo D建议我也删除~/.pub缓存,我这样做了。 在另一个酒吧得到和酒吧服务后,它运行得非常完美


谢谢Timo D和Fox32

可能您遇到了这个问题:它现在已经修复,但讨论中包含了一个解决方法。这是一个全新的项目,将尝试删除.pub,看看是否可以解决它。在删除.pub并执行pub get之后,“耗尽堆空间,尝试分配512字节”-因此pub内存不足。我们将进一步调查。Pub可能正在运行一个无限循环。尝试删除发布缓存文件夹。在Mac和Linux上,此目录默认为~/.pub缓存。在Windows上,它在AppData\Roaming\Pub\Cache中运行。啊,现在它运行得很好,感谢Timo D和Fox32!