我刚刚安装了一个新的拉拉维尔与聚合物。
我有:
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes">
<script src="components/webcomponentsjs/webcomponents-lite.min.js"></script>
<link rel="import" href="components/polymer/polymer.html">
<link rel="import" href="components/core-icon/core-icon.html">
</head>
<body>
<core-icon src="//www.polymer-project.org/images/icons/android.svg"></core-icon>
</body>
</html>抛出:
Uncaught : prototype.registerCallback不是一个功能聚合物-micro.html:63
很少有关于这个错误的在线文章,我试过:
bower update
bower cache clean没有效果。
我该怎么解决这个问题?
我的bower.json:
"dependencies": {
"polymer": "Polymer/polymer#~1.0.5",
"paper-elements": "PolymerElements/paper-elements#~1.0.1",
"iron-elements": "PolymerElements/iron-elements#~1.0.1"
}发布于 2015-07-15 07:00:12
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes">
<script src="components/webcomponentsjs/webcomponents-lite.min.js"></script>
<link rel="import" href="components/polymer/polymer.html">
<link rel="import" href="components/core-icon/core-icon.html">
</head>
<body>
<core-icon src="//www.polymer-project.org/images/icons/android.svg"></core-icon>
</body>
</html>添加
<link rel="import" href="bower_components/polymer/polymer.html">https://stackoverflow.com/questions/31202668
复制相似问题