Using icons in Polymer 1.0

439 views
Skip to first unread message

Sam Genest

unread,
Jun 2, 2015, 5:47:06 PM6/2/15
to polym...@googlegroups.com
Hello everyone, Im trying to get the paper-toolbar element working. However Im unable to get the icons to appear. I cant find any docs for icons in 1.0 so Im using the docs for 0.5 (which I suspect is part of the problem). When I load the my test page in chrome the following errors pop up in the dev console:

Uncaught TypeError: prototype.registerCallback is not a function

and 

iron-icon.html:167 [iron-icon::_updateIcon]: could not find iconset `icons`, did you import the iconset?

How can I fix this issue? 

Mriyam Tamuli

unread,
Jun 4, 2015, 10:17:57 AM6/4/15
to polym...@googlegroups.com
Can you share the code with which you are facing problem? 

jf...@oilamerica.com.pa

unread,
Jun 12, 2015, 3:22:51 PM6/12/15
to polym...@googlegroups.com
Hello Sam,
Has same issue with iron-icon error message at line 167:
For a workaround meanwhile you may want to have a look at issue at StackOverflow (it's related to the loading-sequence of dependencies). Or also, have a look at Github PolymerElements/iron-icon/issues/19 and Github PolymerElements/iron-icons/issues/14 . Hope this helps.

kgbe...@gmail.com

unread,
Jun 12, 2015, 7:04:13 PM6/12/15
to polym...@googlegroups.com, jf...@oilamerica.com.pa
Make sure you are importing iron-icons.html and not iron-icon.html. That's what fixed it for me when switching from 0.5 to 1.0.

<link rel="import" href="../../bower_components/polymer/polymer.html" />
<link rel="import" href="../../bower_components/iron-icons/iron-icons.html" />

<dom-module>
...
Reply all
Reply to author
Forward
0 new messages