PolymerElements / iron-icon

Element that displays a single icon
https://webcomponents.org/element/PolymerElements/iron-icon
40 stars 39 forks source link

`TypeError: this._meta.byKey is not a function` error with webcomponentsjs 1.0.5 #109

Closed fabysdev closed 7 years ago

fabysdev commented 7 years ago

Description

TypeError: this._meta.byKey is not a function error in firefox and edge but not in chrome (not tested in safari, ie) when using webcomponentsjs 1.0.5, works with webcomponentsjs 1.0.4.

Live Demo

http://jsbin.com/wuceranate/1/edit

Browsers Affected

Versions

ronnyroeller commented 7 years ago

Same issue here. Downgrading webcomponentsjs prevents indeed the issue. @fabysdev Thanks for providing the workaround!

abdonrd commented 7 years ago

Same issue here!

benjaminogles commented 7 years ago

In the iron-icon declared properties, changing the default value of _meta to a function that returns the iron-meta instance fixed at least this issue for me. See https://www.polymer-project.org/2.0/docs/devguide/properties#configure-values

benjaminogles commented 7 years ago

Not seeing the issue with webcomponents 1.0.6 in firefox

ronnyroeller commented 7 years ago

Good one. Upgrade to webcomponents 1.0.6 seems to solve the issue.

notwaldorf commented 7 years ago

This should be fixed with the new web components release, closing.