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

n.setConfig is not a function error in custom:swiss-army-knife-card #252

Open
doublec1973 opened this issue Feb 18, 2025 · 1 comment
Open

Comments

@doublec1973
Copy link

Description:
I'm encountering an issue with the custom:swiss-army-knife-card in Home Assistant. After installation, the card fails to load and throws the following error in the browser console:

Error: n.setConfig is not a function
Additionally, I see another error related to define in the custom element registry:

Error: Failed to execute 'define' on 'CustomElementRegistry': the name "swiss-army-knife-card" has already been used with this registry
This happens in Chrome 132.0.0.0 on Windows 10, using Home Assistant (core version [your HA version]).

Steps to Reproduce:

Install swiss-army-knife-card via HACS.
Add the card to a Lovelace dashboard.
Reload the dashboard or restart Home Assistant.
The card fails to render, and the error appears in the console.
Expected Behavior:
The card should load properly without throwing errors.

Additional Information:

Home Assistant Core Version: 2025.2.4
swiss-army-knife-card Version: 2.5.1
Browser: Chrome 132.0.0.0
Operating System: Windows 10
Installation method: HACS
Possible Causes & Troubleshooting Tried:

Verified that the correct file is being loaded from /hacsfiles/swiss-army-knife-card/swiss-army-knife-card.js.
Cleared browser cache and restarted Home Assistant.
Ensured no duplicate installations of the card exist.
Checked for conflicts with other custom cards.
Would appreciate any insights or a fix for this issue. Thanks!

Copy link

Thank you for creating your first issue for the Swiss Army Knife custom card!

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

No branches or pull requests

1 participant