t2ym / i18n-element

I18N Base Element for Lit and Polymer
Other
9 stars 1 forks source link

[Polymer 2.4] Exception on preprocessing template #56

Closed t2ym closed 6 years ago

t2ym commented 6 years ago

[Polymer 2.4] Exception on preprocessing template

Root Cause

Access this.templateDefaultLang too early in preprocessing template

Exception

property-effects.html:1469 Uncaught TypeError: Cannot read property 'templateDefaultLang' of undefined
    at HTMLElement._setPendingProperty (property-effects.html:1469)
    at HTMLElement._setProperty (property-effects.html:1507)
    at HTMLElement.Object.defineProperty.set (properties-changed.html:137)
    at HTMLElement._constructDefaultBundle (i18n-behavior.html:1307)
    at Function._i18nPreprocess (i18n-element.html:108)
    at Function.get template [as template] (i18n-element.html:81)
    at Function._finalizeClass (element-mixin.html:310)
    at Function.finalize (properties-mixin.html:131)
    at HTMLElement._initializeProperties (element-mixin.html:454)
    at HTMLElement._initializeProperties (legacy-element-mixin.html:176)