编辑:它现在正在工作,我刚从头开始重新安装Polymer。以前无法找出我做错了什么。 -.-
我正在使用其中一个layouts进行测试。
当使用Bower布局安装的Polymer不起作用时,在此消息结束时给出控制台日志。(在这种情况下,组件放在/ bower_components文件夹中)
但是,当我只是从给定polymer-tutorial复制粘贴/组件文件夹(并将布局中的链接指向那里)时,一切正常。
我错过了什么,因此Bower的安装不起作用?
这是控制台日志:
XHR finished loading: GET "chrome-extension://mgijmajocgfcbeboacabfgobmjgjcoja/content.min.css". content.min.js:1
XHR finished loading: GET "http://somehost/sites/test/polymer-tutorial-layout/bower_components/core-toolbar/core-toolbar.css". loader.js:87
XHR finished loading: GET "http://somehost/sites/test/polymer-tutorial-layout/bower_components/core-header-panel/core-header-panel.css". loader.js:87
XHR finished loading: GET "http://somehost/sites/test/polymer-tutorial-layout/bower_components/core-drawer-panel/core-drawer-panel.css". loader.js:87
XHR finished loading: GET "http://somehost/sites/test/polymer-tutorial-layout/bower_components/core-icon-button/core-icon-button.css". loader.js:87
Exception caught during observer callback: TypeError: undefined is not a function
at core-menu.Polymer.addListener (http://somehost/sites/test/polymer-tutorial-layout/bower_components/core-selector/core-selector.html:273:17)
at core-menu.Polymer.targetChanged (http://somehost/sites/test/polymer-tutorial-layout/bower_components/core-selector/core-selector.html:266:16)
at core-menu.g.invokeMethod (http://somehost/sites/test/polymer-tutorial-layout/bower_components/polymer/polymer.js:12:12916)
at core-menu.g.notifyPropertyChanges (http://somehost/sites/test/polymer-tutorial-layout/bower_components/polymer/polymer.js:12:11202)
at Object.Observer.report_ (http://somehost/sites/test/polymer-tutorial-layout/bower_components/platform/platform.js:12:12814)
at Object.createObject.check_ (http://somehost/sites/test/polymer-tutorial-layout/bower_components/platform/platform.js:12:18305)
at c (http://somehost/sites/test/polymer-tutorial-layout/bower_components/platform/platform.js:12:5610) observe.js:769
Exception caught during observer callback: TypeError: undefined is not a function
at core-selector.Polymer.addListener (http://somehost/sites/test/polymer-tutorial-layout/bower_components/core-selector/core-selector.html:273:17)
at core-selector.Polymer.targetChanged (http://somehost/sites/test/polymer-tutorial-layout/bower_components/core-selector/core-selector.html:266:16)
at core-selector.g.invokeMethod (http://somehost/sites/test/polymer-tutorial-layout/bower_components/polymer/polymer.js:12:12916)
at core-selector.g.notifyPropertyChanges (http://somehost/sites/test/polymer-tutorial-layout/bower_components/polymer/polymer.js:12:11202)
at Object.Observer.report_ (http://somehost/sites/test/polymer-tutorial-layout/bower_components/platform/platform.js:12:12814)
at Object.createObject.check_ (http://somehost/sites/test/polymer-tutorial-layout/bower_components/platform/platform.js:12:18305)
at c (http://somehost/sites/test/polymer-tutorial-layout/bower_components/platform/platform.js:12:5610)