HACS custom integrations/cards: I can't use new ones

I use the latest versions of HA and Hacs.
For a few weeks I noticed that I can’t add any new custom cards.
Hacs installs them correctly and I can also see them in “resources”.
But if I try to add one I don’t find them in the list of available cards.
Even trying to add them manually it always tells me that “the custom card doesn’t exist”.
I noticed that if I modify the resource by deleting for example “hacstag” at the end of the string and restart HA, the cards work but only the first time!
At the first refresh or accessing from another client the error returns.
The strange thing is that it only applies to cards that I install for the first time.
If I uninstall and reinstall a card that I’ve been using for a long time, for example, I can use it without problems.
All the others custom cards (that I use) already installed work perfectly.

Do you have any idea what it could be and how to solve the problem?

Sounds like a browser cache issue, try refreshing CTRL+F5

The problem occurs with any browser, operating system, and companion app.

It almost seems like HA has problems loading the resource. The JS files are in hacsfiles though and I can reach them normally by clicking on “open source”.

I also tried to add the link to the custom components directly in configuration.yaml using “extra_module_url” but it didn’t work… Although maybe I did something wrong.

Here an bit of my log:

Floorplan",“new”:false,“pending_upgrade”:false,“stars”:1253,“state”:null,“status”:“default”,“topics”:[“floorplan”,“lovelace-card”,“lovelace-floorplan”,“panel”]},{“authors”:,“available_version”:“”,“installed_version”:“”,“config_flow”:false,“can_download”:true,“category”:“plugin”,“country”:,“custom”:true,“description”:“Media card for Home Assistant UI with a focus on managing multiple media players, but not excluding single player setups.”,“domain”:null,“downloads”:8784,“file_name”:null,“full_name”:“punxaphil/maxi-media-player”,“hide”:false,“homeassistant”:null,“id”:“770072954”,“installed”:false,“last_updated”:“2025-01-09T21:18:21Z”,“local_path”:“/config/www/community/maxi-media-player”,“name”:“Maxi Media Player”,“new”:false,“pending_upgrade”:false,“stars”:68,“state”:null,“status”:“default”,“topics”:[“hacs-plugin”,“lovelace-custom-card”,“sonos”]},{“authors”:,“available_version”:“”,“installed_version”:“”,“config_flow”:false,“can_download”:true,“category”:“plugin”,“country”:

I tried to installa maxi-media-player manually in order to bypass HACS.

At the end the only solution was to delete all the resources and magically the two that I used as tests (maxi-player and verticarl-in-stack) started working.

After that I reinstalled the cards one by one from HACS and now everything works.

I want to point out that I deleted the resources a few at a time restarting HA every time to understand if one of those was causing the problem. Unless it was the last one, it was only when I deleted all the old ones that the last ones installed started working.