question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Custom element doesn't exist: mod-card.

See original GitHub issue

My Home Assistant version: 2022.3

My lovelace configuration method (GUI or yaml): GUI

What I am doing: make use of “custom: mod-card” on vertical-stack card /card-mod.js installed as frontend extra-module

What I expected to happen: styling cards without an <ha-card> element

What happened instead: “Custom element doesn’t exist: mod-card.

The least amount of code possible to reproduce my error

Custom element doesn't exist: mod-card.
type: custom:mod-card
card:
  type: vertical-stack
  cards:
    - type: entities
      entities:
        - sensor.pid_temperature
card_mod:
  style: |
    ha-card {
      --ha-card-background: teal;
    }

By putting an X in the boxes ([]) below, I indicate that I:

  • Understand that this is a channel for reporting bugs, not a support forum (https://community.home-assistant.io/).

  • Have made sure I am using the latest version of the plugin.

  • Have followed the troubleshooting steps of the “Common Problems” section of https://github.com/thomasloven/hass-config/wiki/Lovelace-Plugins.

  • Understand that leaving one or more boxes unticked or failure to follow the template above may increase the time required to handle my bug-report, or cause it to be closed without further action.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:5
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
RomRidercommented, Mar 9, 2022

Same here, eventually after refreshing the page 10 times it shows up one time and then breaks again on the next refresh.

2reactions
troininecommented, Mar 10, 2022

Same here when upgrading to HA 2022.3.3. Reverting back to 2022.2.9 fixes the issue but this prevents the upgrade to any 2022.3.x version it seems.

Looks like a duplicate to #185. My card-mod config is as follows:

frontend:
  extra_module_url:
    - /local/community_cards/card-mod.js

I have not tested loading card-mod as a resource but by the looks of it, people have been struggling with that config as well.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Custom-element doesn't exist - Home Assistant Community
I am trying to install for the last two weeks the custom element ... Note that local doesn't exist either - it points...
Read more >
Custom element doesn't exist: card-modder · Issue #28 - GitHub
Hi, after the HA upgrade to 0.88.1 Lovelace doesn't find card-modder: This is my code in ... Custom element doesn't exist: card-modder #28....
Read more >
HA app error - Custom element doesn't exist... I CRY - Reddit
It just says: "custom element doesn't exist: mushroom-chips-card". Can someone please help this poor noob figure this out? Edit: Spelling.
Read more >
Homekit Infused 5 | Homekit Infused 5 2022
setConfig is not a function error, please re-download Swipe Card from HACS! If your popups do not work or get the custom element...
Read more >
How to Create a Home Assistant Dashboard - LazyAdmin
So I not only needed to change the layout of the button, but also the functionality. I have replaced the type of custom-button...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found