Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught TypeError: Cannot read property 'replaceChild' of null #59

Closed
wiuwiu opened this issue Feb 20, 2019 · 3 comments
Closed

Uncaught TypeError: Cannot read property 'replaceChild' of null #59

wiuwiu opened this issue Feb 20, 2019 · 3 comments
Labels
bug Something isn't working

Comments

@wiuwiu
Copy link

wiuwiu commented Feb 20, 2019

Hi @kalkih.

Weird thing. Please take a look at this config:

          - type: vertical-stack
            cards:
              - type: horizontal-stack
                cards:     
                  # wykres wilgotności
                  - type: custom:mini-graph-card
                    entities: 
                      - sensor.mqtt_humidity_bedroom
                    font_size: 80
                    animate: true
                    hour24: true
                    points_per_hour: 1
                    hours_to_show: 12
                    show:
                      fill: false
                    line_color: '#ff0000'                                   # czerwony 
                    color_thresholds:
                      - value: 40.00
                        color: '#55ff00'                                    # zielony
                      - value: 60.00
                        color: '#00aaff'                                    # niebieski
                  # wykres ciśnienia
                  - type: custom:mini-graph-card
                    entities: 
                      - sensor.mqtt_pressure_bedroom
                    icon: mdi:gauge
                    font_size: 75
                    animate: true
                    hour24: true
                    points_per_hour: 1
                    hours_to_show: 12
                    show:
                      fill: false
                    line_color: '#55ff00'                                   # zielony

When I use custom:mini-graph-card nested in vertical-stack and then in horizontal-stack I have this error on my log:
https://XXX.org/frontend_latest/dcc7e8d8e861a5f2b17d.chunk.js:3203:365 Uncaught TypeError: Cannot read property 'replaceChild' of null. This error occurs when I refresh the page.

@kalkih kalkih added the bug Something isn't working label Feb 21, 2019
@kalkih
Copy link
Owner

kalkih commented Feb 21, 2019

Hi,
I've been trying to reproduce this issue but with no success, even tried nesting deeper with more stacks.
Is that the full nesting of your configuration? are you sure it's coming from that part of the configuration?

@wiuwiu
Copy link
Author

wiuwiu commented Feb 22, 2019

Hi. This config was nested in:

      - type: custom:layout-card
        layout: vertical
        cards:

But it was happened in 87.1 HA. In 88.0 everything working perfect.

@kalkih
Copy link
Owner

kalkih commented Feb 22, 2019

Okay, I'll close this then.

@kalkih kalkih closed this as completed Feb 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants