[SOLVED]Custom element doesn't exist: mini-graph-card ; HA OS 4.15 ; HA 0.117.5 ; Module v.0.9.4

Hello,
I just tried to add and use lovelace mini graph card module in my new Home Assistant setup (fresh install).
I’ve got the message in subject. I’m trying to tshoot since 3 hours but I’m not able to find to root cause…

I’ve added my resource file (.js) in config/www directory, added the resource reference in configuration -> Lovelace dashboard -> resources:
url : /local/mini-graph-card-bundle.js?v=0.9.4
type : module JS

I’m also able to call the js file using the url : http://[ha_ip]:[ha_port]/local/local/mini-graph-card-bundle.js?v=0.9.4

Thanks for help

Add via hacs

Hello the community,

Here is the end of the story. In fact it was working since the beginning just after I fixed the resource declaration. BUT my browser used its cache and thus, I thought I had an issue even if there were no issue.
I discovered it this morning when looking at my Home Assistant app on my mobile phone.
So I cleared my browser cache on my PC and it was working just after.

One lesson from that, when doing tests, don’t forget to always clear the browser cache.

Thanks to the community for help and developpement around Home Assistant.

Regards

2 Likes