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

Constant "Custom element doesn't exist" errors #511

Closed
antonio1475 opened this issue Mar 5, 2022 · 13 comments
Closed

Constant "Custom element doesn't exist" errors #511

antonio1475 opened this issue Mar 5, 2022 · 13 comments
Labels

Comments

@antonio1475
Copy link

Describe the bug
I get constant/random "Custom element doesn't exist" in custom cards, especially after refreshes (and even more if it's a cache refresh i.e. Shift-Refresh). Those resources are enabled and load/work most of the time - it's not that they never work/worked.

Minimalist is installed via HACS, and checkbox "Include custom card resources it's depending on" is enabled in the Integration configuration (and it works, most of the time).

Same happens in a non-minimalist Dashboard (eg. a UI dashboard, where I'm using card-mod, button-card,... too).

To Reproduce
Steps to reproduce the behavior:

  1. Minimalist installed via HACS.
  2. Checkbox "Include custom card resources it's depending on" is enabled in the Integration configuration
  3. Go to a dashboard that uses custom card resources (not necesarily a Minimalist yaml one)
  4. Refresh/hard-refresh (refresh cache).
  5. See error (sometimes!)

Expected behavior
Resources to load as normal, always.

Screenshots
image

Additional context
Before installing Minimalist, I had button-card, card-mod and others manually installed, then via HACS, and they always loaded perfectly. (I removed them before adding Minimalist, so that I could enable the checkbox without double-loading as warned)

Should I disable the checkbox and install those resources directly via HACS as before?

@Templum
Copy link

Templum commented Mar 7, 2022

@antonio1475 I experience similar issues, but they started more recently. Not too sure if they may be changed something in the recent updates that could impact load order. It worked previously without any issues.

There is also the possibility that this is related to the recent home assistant update.

@antonio1475
Copy link
Author

@Templum I uninstalled Minimalist from HACS (it states that the HACS installation is sometimes broken) and did the manual installation, without the checkbox in the integration.
I then installed button-card and card-mod through HACS and it's been working perfect since.

@Templum
Copy link

Templum commented Mar 7, 2022

@antonio1475 what do you mean by manual installation, are you referring to that you reinstalled Minimalist via HACS choosing to provide the dependencies on your own. Or did you manually install Minimalist?

@antonio1475
Copy link
Author

@Templum

High level steps I did (some restarts might be required in-between, follow the official instructions):

  1. Delete Minimalist from HACS
  2. Review/delete leftover folders in custom_components/minimalist
    (careful in not deleting config/ui_lovelace_minimalist, where your dashboard and possible custom cards are stored.
  3. Manual Download (no HACS).
  4. Set up the Integration: without the checkbox for the dependencies.
  5. Install the dependencies like button-card "manually" (via HACS).

:)

@Intecpsp
Copy link

Intecpsp commented Mar 8, 2022

I've been seeing this issue since updating to 6.x. I installed through HACS and didn't have any issue until recently like the others are stating. I'd prefer not to do the manual install since I wouldn't receive update notifications. There has to be another way of keeping the HACS install and not having constant errors. Do any devs know of a recent change that would be causing this?

@antonio1475
Copy link
Author

@Intecpsp I don't know how bad it would be if the dependencies like button-card are also installed by you through HACS.
Minimalist documentation talks against it because it might cause double-loading, but as a temporary workaround...?

Regarding the update notifications. I agree, and I always want the latest. But of course not over not loading if there's another way. So, in the meanwhile you can subscribe to Releases in Github>Minimalist>Subscribe>Customized>Releases 😉

I'm doing that for now, until HACS installation isn't considered broken by Minimalist.

@basbruss
Copy link
Collaborator

basbruss commented Mar 8, 2022

The best way is to just install the UI Lovelace Minimalist through HACS(no manual install needed) and install all dependencies also by yourself through HACS. Than uncheck install dependencies in the configure menu within the integrations-tab and reload HA.
Screen Shot 2022-03-08 at 14 05 30

Sometimes there can be some hiccups with loading js resources when minimalist does install all the dependencies for you.

@Intecpsp
Copy link

Intecpsp commented Mar 8, 2022

My "workaround" for now is to just have a backup dashboard that uses default HA cards. Prioritize the minimalist dashboard, but fall back to the backup if there is a loading error

@antonio1475
Copy link
Author

The best way is to just install the UI Lovelace Minimalist through HACS(no manual install needed) and install all dependencies also by yourself through HACS. Than uncheck install dependencies in the configure menu within the integrations-tab and reload HA.

That's... simple and obvious 😅
I now honestly don't know why I went the manual download route... I might have been obfuscated at the time, read that HACS installation sometimes is broken, and went full overboard...

Good point. I will try that too to stay within HACS. Thanks.

@nickmaleao
Copy link

I'm also having the same issues, but for me the problem its worse, after upgrading to the latest HA and minimalist v0.0.7 some of the cards aren't even loading and I don't get any error, if I use the home assistant android app I don't have any issues loading the cards. The problem only happens if I use a browser, tested on Chrome and Firefox both in incognito mode

@rick2909
Copy link
Contributor

rick2909 commented Mar 21, 2022

For me, it is the complete opposite of what nickmaleao has. Browser works, but app just shows that every element doesn't exist. this is on a clean install. it works now after a few app restarts.

@xavierdemoor
Copy link

I have the same problem as @rick2909. I have no problem in a browser, never. But on HA app, lot of the time I need to restart the app a random number of time to not get the error.

I installed minimalist via HACS and checked include custom cards. Since "my-cards-slider-cards" is not available on HACS anymore, I don't know how to install it manually.

@MikeTheCleric
Copy link

Hi! I've got the same problem. Sometimes the GUI on browser needs a reload or restarting the app to load the resources. There are nwes about a possible solution? Thanks in advice!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

8 participants