Hi,
I’m customizing my dashbord using “Stack-in-card” HACS dashboard integration.
I installed “core-2026.1.3” yesterday and started to see an error box instead of the card. Custom element doesn't exist: vertical-stack.
Now, this error is not always present.
What I mean by that is: if the error is present and I move to another page, like settings or HACS or another dashboard, and return to the dashboard with the stack-in-card mod, the card is shown correctly (no error). I’m not sure what triggers the error, but at some point I just refreshed the browser and the error showed up.
I’m also using the ios HA companion app on an iPad mini to view the customized dashboard and it shows the same error, but only when I start up the app. If the error is shown, I move to another page, like settings, and when I return to the dashboard, the card is shown correctly.
Can someone please help me diagnose the issue?
Before anyone asks, I did clear the web browser cache and restart HA a few times.
While on the subject, I’m using “stack-in-card”, but I also noticed “vertical-stack-in-card” on HACS. They both seems to have their last update 2 years ago. Which one should I be using? Or, would it be preferable to use the HA Vertical stack card?
This is strange since the thread is titled “Stack-in-card “custom element doesn’t exist” error”.
Please clarify what card you are trying to use.
Also, which SIMPLIFIED code causes this.
Also, a screenshot of the problem.
Also, purge a browser cache on PC, purge a frontend cache (settings - debug - there is a button) in Companion app.
Both have own issues.
Myself using stack-in-card. What does not work as expected - I fix by card-mod.
As I said previously, browser cache was purged, twice.
Frontend cache cleared also.
Problem remains when I refresh the web page.
Problem remains when I open the ios app.
Problem clears when I go to another page and back on both the web page and ios app.
The error message specifically say vertical-stack even if I’m using stack-in-card. But, on the same dashboard, I have a Vertical-stack card and a Stack-in-card card. Could this be the issue?
The error “vertical-stack does not exist” is shown for a section containing “stack-in-card”, no idea why it says so.
Try removing the card & installing it again with HACS.
I separated the Vertical Stack and Stack-in-card cards on different dashboards.
I unsinstalled stack-in-card.
I restarted HA.
I reinstalled stack-in-card.
I restarted HA.
I still have the same error, which is corrected when I navigate to other pages.
Weird that you see a “vertical-stack does not exist” error.
Just a silly test, can you move your cards to Masonry layout view?
Btw, the stack-in-card does not have “vertical-stack” string in it’s code. So it in unclear which part shows it.
Have you installed the stack-in-card in HACS from an ORIGINAL repo?
In the hope of isolating the problem, I deleted the dashboard with the Vertical Stack card and restarted HA.
Now, the error is permanent on the stack-in-card card. Even if I navigate to another page, the error remains.
It sounds like the stack-in-card integration is intertwined with the vertical-card HA card.
Tomorrow I’ll reinstall yesterday’s backup and see if the problem was there as well.
In the mean time, @Ildar_Gabdullin, can you have a look at my other post?
I will think about it once again.
Internally the “stack-in-card” uses a “hui-vertical-stack-card” element which internally in HA Frontend is considered as a “custom element” - in fact all UI elements in the Frontend code are “custom” (apart from a standard abstract LItElement and imported 3rd party buttons, checkboxes etc).
My guess is that due to some unknown for me reasons Frontend glitches with that “hui-vertical-stack-card” element, just a fruitless speculation…
Would be glad to help, but I am not using Mushrooms, sorry ((((
I am fairly certain this is the second person to experience this. I’ll look back at my previous conversation with that user to verify. It was a head scratcher!!
Thanks @LiQuid_cOOled for your help.
Reading your previous conversation, it ends with no solution, unless you conversed privately with the OP afterward.
I’ll install a previous backup and see if I have the same problem. I’ll keep you posted.
I reinstalled a backup from when I started playing around with stack-in-card and the problem showed up.
I installed a fresh install with hacs and stack-in-card only and the problem isn’t there.
So, there is definitely something wrong in my setup. I’ll try with an even older backup.
Also, when I install card-mod, the readme indicates that I have to add it to the configuration.yaml like:
Guess you may register card-mod ONLY as “extra_module_url” (not as a resource too what HACS automatically did for you) - unless you use cast (then card-mod must be registered as a resource too).
In my previous install, with the error message, I listed all the dashboard javascript resources under extra_module_url: as indicated by card-mod.
Could this be the source of the problem?