Search code examples
polymercdnpolygit

Error using Polygit.org Polymer elements


I get the following error using Polymer CDN (Polygit.org):


https://polygit.org/components/promise-polyfill/promise-polyfill-lite.html Failed to load resource: the server responded with a status of 404 ()


My head tag has the following:

  <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">

Solution

  • This is because polygit.org serves taylorhakes/promise-polyfill and not the fork maintained by PolymerLabs as its promise-polyfill component.

    This can be verified by comparing the polygit.org/components/promise-polyfill/bower.json manifest to the one found in the taylorhakes/promise-polyfill repository.