Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Upgrade to version 6 keeps failing #557

Closed
1 task done
Supermanenvysme opened this issue Nov 18, 2024 · 5 comments
Closed
1 task done

Upgrade to version 6 keeps failing #557

Supermanenvysme opened this issue Nov 18, 2024 · 5 comments
Labels
type/bug Something isn't working

Comments

@Supermanenvysme
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Have been trying to upgrade to version 6 (from version 5) and when replacing the js, it fails on the dashboard. Roll back to v5 and it restores. tried a few times since yesterday but unsuccessful.

Steps To Reproduce

No response

Expected behaviour

to initialise once the JS file is replaced and refreshed

Card Version

6

Home Assistant Version

2024.11.2

Configuration

No response

Relevant log output

No response

@Supermanenvysme Supermanenvysme added the type/bug Something isn't working label Nov 18, 2024
@slipx06
Copy link
Owner

slipx06 commented Nov 18, 2024

Hi
Try upgrade using HACS?
Any browser logs?

@Supermanenvysme
Copy link
Author

This is the error I receive as soon as the js file is replaced:

Custom element not found: sunsynk-power-flow-card

@slipx06
Copy link
Owner

slipx06 commented Nov 19, 2024

Probably an issue with you browser caching old content. I cant really help without logs. You should clear your browser cache. Also the preferred way to install this is using HACS.

@Supermanenvysme
Copy link
Author

Refreshed the cache a few time.

Error from HA:

Failed to execute 'define' on 'CustomElementRegistry': the name "sunsynk-power-flow-card-dev" has already been used with this registry window.CustomElementRegistry.define (src/scoped-custom-element-registry.js:44:14) /local/sunsynk-power-flow-card.js:30:100 e (/local/sunsynk-power-flow-card.js:1:250) /local/sunsynk-power-flow-card.js:46:684457

Probably going to stay on ver5 if this cant be resolved.

@slipx06
Copy link
Owner

slipx06 commented Nov 20, 2024

Looks like you are trying to load a development version of the card? You should remove all instances of sunsynk-power-flow-card.js. Then do a clean install.

You should see this in your browser logs

image

NOT

image

Repository owner locked and limited conversation to collaborators Nov 25, 2024
@slipx06 slipx06 converted this issue into discussion #562 Nov 25, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
type/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants