lovelace-template-entity-row
lovelace-template-entity-row copied to clipboard
Uncaught (in promise) TypeError: Cannot read property 'styles' of undefined
Hello,
I am getting this error in the browser console (at line 30 and a bunch at line 1 of template-entity-row.js), while getting "Custom element doesn't exist: template-entity-row." in the UI.
It works if I set it up manually, but doing it from code with:
add_extra_js_url(hass, "/local/template-entity-row.js")
creates the issue (regardless of the subfolder I use). This method works fine with other cards, including auto-entities.
I'm trying to write an integration that packages some things together, hence the code approach...
I understand this is perhaps an issue of my own creation, but thought I'd ask to see if anything stood out to you.
Thanks again!
exact browser log:
template-entity-row.js:30 Uncaught (in promise) TypeError: Cannot read property 'styles' of undefined at Function.get styles [as styles] (template-entity-row.js:30) at Function.finalize (template-entity-row.js:1) at Function.createProperty (template-entity-row.js:1) at template-entity-row.js:1 at template-entity-row.js:1 at t (template-entity-row.js:1) at template-entity-row.js:51 get styles @ template-entity-row.js:30 finalize @ template-entity-row.js:1 createProperty @ template-entity-row.js:1 (anonymous) @ template-entity-row.js:1 (anonymous) @ template-entity-row.js:1 t @ template-entity-row.js:1 (anonymous) @ template-entity-row.js:51
Did you figure out this one? I am hitting the same error when adding this module manually using
frontend:
extra_module_url:
- /local/template-entity-row.js