maykar / compact-custom-header

This project has been replaced by Custom Header
MIT License
239 stars 31 forks source link

Uncaught TypeError: Cannot read property 'querySelector' of null #236

Closed grewhit25 closed 4 years ago

grewhit25 commented 4 years ago

Describe the issue:

CCH module not loading correctly. I receive 'Uncaught TypeError' error below even with the simplest of cch config. The error is still reported when cch: is commented out and also same when url + type commented out.

All has been working fine up until a few days ago after an Home Assistant update via watchtower. I am running the latest beta build which I do accept might be the culprit.

Config YAML:

resources:
  - url: /community_plugin/compact-custom-header/compact-custom-header.js
    type: module
:
cch:
  menu: overflow
  options: clock
  clock_date: true
  voice: hide
  clock_format: 12

HA and/or Browser Error:


2019-11-12 16:16:40 ERROR (MainThread) [frontend.js.latest.201911080] https://<my_duckdns.org>/community_plugin/compact-custom-header/compact-custom-header.js:317:30 Uncaught TypeError: Cannot read property 'querySelector' of null

CCH is not functional.

Versions and Browser:

CCH version 1.4.7 Home Assistant 0.102.0.dev20191112 Browsers are Chrome, MS Edge, Mobile App - all with the same result. Lovelace mode:yaml

maykar commented 4 years ago

Looks like you are on the dev branch of HA, there is no current beta release: https://github.com/home-assistant/home-assistant/releases

I apologize, but this is not something I'm willing to troubleshoot as whatever is causing your error may not be an issue when it makes it to beta, let alone release. Even if I were to fix it, that fix could be completely negated before the next beta is even released.

grewhit25 commented 4 years ago

@maykar thanks for you prompt reply and of course I agree with your approach. I'll just ride it out until next HA release. Thanks for all the effort you have put into this project, really appreciate it.

I am happy for you to close in the meantime if you want to.

maykar commented 4 years ago

I think it can stay open for the time being. Will be a reminder to look for it when the next beta rolls out.

maykar commented 4 years ago

Looks like this for sure exists in the latest beta as well. I'll take a look as soon as I can.

maykar commented 4 years ago

These issues should be fixed in the latest release, a side effect of the fixes and change in HA is that voice as a clock may not work, but working on CCH's replacement is my priority at the moment.