0

使用 Polymer CDN (Polygit.org) 时出现以下错误:


https://polygit.org/components/promise-polyfill/promise-polyfill-lite.html加载资源失败:服务器响应状态为404()


我的头标签有以下内容:

  <base href="https://polygit.org/components/" />
    <script src="webcomponentsjs/webcomponents-lite.js"></script>
    <link rel="import" href="polymer/polymer.html">
    <link rel="import" href="promise-polyfill/promise-polyfill-lite.html">

    <link rel="import" href="iron-ajax/iron-ajax.html">
    <link rel="import" href="iron-image/iron-image.html">
    <link rel="import" href="paper-styles/demo-pages.html">
4

2 回答 2

0

这是因为 polygit.org 提供服务,而不是作为其组件taylorhakes/promise-polyfill维护的分叉。PolymerLabspromise-polyfill

这可以通过将清单与存储库polygit.org/components/promise-polyfill/bower.json中找到的清单进行比较来验证。taylorhakes/promise-polyfill

于 2017-03-17T21:39:02.853 回答
0

正如 danielx 所说,您必须包括promise-polyfill来自 PolymerLabs。

以下行将告诉 polygitpromise-polyfill从 github 中提取来自 polymerlabs 组织的最新版本:

<link href="https://polygit.org/promise-polyfill+polymerlabs+*/components/"
      rel="import">
于 2017-03-20T04:20:07.690 回答