Looks like my browser cache cleared and my lovelace bacame broken because of “Custom element doesn’t exist: hui-horizontal-stack-card.”
It was working fine, no reconfiguration was done, but at some point the custom card stopped to work, and while in cahce was still working. Also I cannot find it in HACS to reinstall it. Is it from card-mod?
Logger: frontend.js.latest.202203012
Source: components/system_log/__init__.py:190
First occurred: 22:53:01 (1 occurrences)
Last logged: 22:53:01
https://xxxxxxxxxxx.duckdns.org/frontend_latest/app.b83d2076.js:850:0 Error: Failed to execute 'define' on 'CustomElementRegistry': the name "mod-card" has already been used with this registry
Not sure this fixes the issue. I had the same issue you mentioned so I tried your solution but get the error : custom element doesn’t exist: hui-element.
Pls, let me know if you see a solution as this element worked well for me mostly. Except every once in a while it comes up with the same issue (suspect browser cache issue you mention above).
Just trying to get the correct syntax for the solution. Since mine seemed to work for me then I went with that. Since the OP and I both had intermittent issues with the original approach which also seemed to work but later failed; I was looking for clarification so it won’t bite me in the rear later.
Surely it is “card_type”. It is clearly specified in the docs.
But you haven answered my question “why you need this?”
If you are satisfied with “stack-in-card” - then OK.
And I see only usage of hui-element for stacks - placing a stack inside Entities card (which of course may be implemented by using another custom cards).
Thank you both for your clarifications. This has been very helpful to me. (lldar_Gabdullin, I have followed your many posts and they have been very useful as well).
To answer your question: I was trying to create vertical-stack and horizontal-stacks using custom button cards.