-
Notifications
You must be signed in to change notification settings - Fork 20
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
‘Custom element doesn’t exist:zha-network-visualization-card’ #23
Comments
I'm having the same problem. Using your edit unfortunately didn't fix it for me. I also tried rename the .js.gz file, and using /local/community/zha-network-visualization-card/zha-network-visualization-card.js instead of /hacsfiles/zha-network-visualization-card/zha-network-visualization-card.js. |
I copied the folder up a level and it instantly started working |
Fix for Issue dmulcahey#23
I managed to get everything installed but mainly got the above error. |
@harbri What you installed is another card not this one... Look at the name of this repo and the files and look at the URL you have. This component is not on HACS. You installed my other card that shows a table of devices. |
Yep, you're right. Stupid mistake of me! Installed your other card and it's working now. Thanks. |
My install just started working all of a sudden. I see now the date info is actually a recent date. Maybe just needed a little more patience. |
Thank you for making this, it is really helpful in troubleshooting.
I was getting this error when trying to add the card to lovelace:
‘Custom element doesn’t exist:zha-network-visualization-card’
I was able to get zha-network-card to work, so I seemed to be doing something right. While trying to understand if the name of the custom card is from the java-script filename or from something in the file I noticed both zha-network-card.js and zha-network-visualization-card.js had a line like:
customElements.define("zha-network-visualization-card",ZHANetworkVisualizationCard);
But in the working zha-network-card.js file it was all on one line, while the visualization js had it on multiple lines. I edited the zha-network-visualization-card.js file so that it is on one line and now it works for me.
Maybe there is something else changed between my last failed attempt and this success but I thought I it was worth mentioning.
Here is a diff between the original and my edits:
The text was updated successfully, but these errors were encountered: