未捕获的TypeError:Polymer.Base.create不是函数

时间:2016-12-14 23:38:41

标签: javascript polymer-1.0 web-component

我创建了一个具有不同依赖关系的Web组件,其中包括由Polymer提供支持的铁图标组件。

但是,当我部署组件时,我会在控制台中看到下一条消息:

"未捕获的TypeError:Polymer.Base.create不是函数"在iron-icon.html文件中,第142行。

要安装proyect的依赖项,我使用了下一个bower.json:

    {
      "name": "facebook-wall",
      "version": "1.0.0",
      "keywords": [
        "polymer",
        "web-components",
        "facebook",
        "wall",
        "facebook-wall"
      ],
      "main": "facebook-wall.html",
      "dependencies": {
        "iron-ajax": "PolymerElements/iron-ajax",
        "paper-header-panel": "PolymerElements/paper-header-panel",
        "paper-styles": "PolymerElements/paper-styles",
        "iron-icon": "PolymerElements/iron-icon",
        "iron-icons": "PolymerElements/iron-icons",
        "paper-icon-button": "PolymerElements/paper-icon-button",
        "paper-material": "PolymerElements/paper-material",
        "paper-button": "PolymerElements/paper-button",
        "web-component-tester": "Polymer/web-component-tester#~4.2.1",
        "test-fixture": "PolymerElements/test-fixture#^1.0.0",
        "paper-behaviors": "PolymerElements/paper-behaviors#~1.0.12"
      },
      "devDependencies": {
        "polymer-test-tools": "Polymer/polymer-test-tools#master",
        "mocha": "~1.14.0",
        "sinon": "http://sinonjs.org/releases/sinon-1.10.2.js"
      },
      "resolutions": {
        "mocha": "^2.3.0"
      },
      "authors": [
        "Miguel Ortega Moreno <miguel.ortega.moreno5@gmail.com>"
      ],
      "description": "Polymer component which show a facebook wall",
      "moduleType": [],
      "license": "MIT",
      "homepage": "https://github.com/Mortega5/facebook-wall",
      "ignore": [
        "node_modules",
        "bower_components",
        "test",
        "tests",
        "*.*~"
      ]
   }

你知道它有什么问题吗?

0 个答案:

没有答案