Lovelace YAML migrate - Custom element doesn't exist

I have problem, today when I migrate from 84.3 to latest 85.0 HA migrate my lovelace configuration.
OK… No problem… But then I got many errors and I can not fix it - custom elements do not exits…

I tried to copy my custom configuration to RAW editor but after save procedure it delete resources…

error_1

error_2

Resources which are not saved:

resources:
  - url: /local/custom_ui/dark-sky-weather-card.js?v=4
    type: js
  - url: /local/toggle-lock-entity-row.js?v=1
    type: js
  - url: /local/mini-graph-card.js?v=0.0.6
    type: module
  - url: https://unpkg.com/[email protected]/moment.js
    type: js
  - url: /local/custom_ui/calendar-card/calendar-card.js?v=2
    type: module

When I tried to directly edit file “.storage\lovelace” Lovelace stopped working… so this solution is also not working…

Configuration looks like this:
configuration

Any idea how to solve this?

I have just found this too. Every time you save in the RAW editor it removes all the resources config.

Just to add more info I did not migrate from the yaml config. I was already there.

I had a test install that I upgraded first and it was all good. But as soon as I got into and saved using the RAW config editor the resources config lines were all removed.

It’s a bug in 0.85 will e fixed in 0.85.1

1 Like

For the time until 0.85.1 you can edit .storage/lovelace directly.

e.g.

{
    "data": {
        "config": {
            "resources": [
                {
                    "type": "js",
                    "url": "/local/custom-card.js"
                }
            ],
            "title": "HOME",
            "views": [
                {
                    "cards": [

Now your custom cards should work fine again.

For me the resource configuration is still dropped in the 0.85.1 release running on docker.

So is this resolved or not?

same issue here with docker 0.85.1

As far I can tell, it isn’t resolved.

Checked this file, but the needed resource data is already there, but still gives me " custom element does not exist".

I’m on 0.85.1

Without further details about which custom element and full path of those resources it is difficult to help.

My resources (but completly everything fail regarding that):

 resources:
   - url: /local/gauge-card.js?v=3
     type: js
   - url: /local/custom_ui/dark-sky-weather-card.js?v=4
     type: js
   - url: /local/toggle-lock-entity-row.js?v=1
     type: js
   - url: /local/mini-graph-card-bundle.js?v=0.1.0
     type: module
   - url: https://unpkg.com/[email protected]/moment.js
     type: js
   - url: /local/custom_ui/calendar-card/calendar-card.js?v=1.0.1
     type: module
   - url: /local/custom-lovelace/swipe-card/swipe-card.js?v=1.1.0
     type: module
   - url: /local/slider-entity-row.js?v=1
     type: js
   - url: /local/alarm_control_panel-card.js?v=1
     type: js

And here are my custom elements…

Download link:

Did you try them one by one?

Yes… but problem is that it does not save changes at all… Just like that RAW editor is somehow broken or that file is corrupted under “config\.storage\”.

As far as I can tell the raw config editor is fixed with 0.85.1. Did you stop home assistant when you were editing the in .storage/lovelace?

How do you mean stop home assistant?

I did edit via RAW editor in lovelace GUI…

Not sure if you have to stop home assistant when editing the file on the system level (not the raw config editor). I just tried to add another custom component without issues (in the GUI). What exactly is the problem? Does the resource simply disappear?

Exactly that - simply disappear after save button and after you re-open RAW editor…