Failed to load resource:' index.m.js.map' what is this?

seeing this in inspector (Safari):

Failed to load resource: the server responded with a status of 404 (Not Found)
https://mydomain.duckdns.org:8125/local/lovelace/resources/index.m.js.map

anyone got a clue as to what this could be, or how to debug this? Everything is showing on the view…

It’s a bug in bar card caching. I just added an empty file in that location with that name and the error goes away.

I.e. create an emtpy file named index.m.js.map located in config/www/lovelace/resources/

clever…
How do you know it is bar card?

because I have my cards separated in unique folders to identify things like this. Also, pretty sure F12 shows where it’s coming from too

you mean instead of this:

use
lovelace/resources/air-visual/air-visual-card.js
lovelace/resources/auto-entities/auto-entitites.js
etc
etc?

not sure what f12 would do, call inspector? because the clip I showed is from inspector, and doesnt show a path

ah, i couldn’t remember. Anyways, I use hacs’ which does this:

great, I’ve done it myself :wink:

still see this though, nothing pointing to bar-card?

because it’s a caching issue. Your browser wants to pull the file it thinks should be in that location.

Pretty sure the issue is:

Bar card used to use that file. Bar card no longer uses that file. Your browser thinks it should use that file. Browser tries to find said file, but can’t. So the issue is with the bar card, but it’s not something that can be fixed because the browser is being stupid.

Just create emtpy file and be done with it. In the future, if something like this happens, you’ll be able to do the same thing but identify which card is doing it.

thanks, I did create the file, and yes the error has disappeared. very nice.

if I may pursue on this:
it being a cache issue, shouldn’t it be fixed after clearing that cache (I know, can be hard, but Ive repeatedly soft- and hard cleared cache, even restarted few times, the cache really was cleared…)
adding to that, with the last few updates of bar-card (there where many) ive always updated the version number (I don’t use HACS, so I have to to have HA use/recognize the latest version). Since functionality that was updated in these updates is live, I must presume the latest version is correctly loaded. Wouldn’t it be odd then, if this file was still looked for by the browser?

maybe allow a tag to Lucas @Gluwc ?

caching is handled by the browser…

ok, thanks for the help, it feels like a stopgap for now, but it took out the nasty little red error in the inspector…always hate that.

only issue left now is the conditional card throwing these:

when the condition isn’t met. This bug is rather persistent …

Don’t know, I don’t use fold entities. I use button card for everything.

yes, happens with buttons too, if conditional:

#  - type: conditional
#    conditions:
#      - entity: binary_sensor.meteoalarm_brabant
#        state: 'on'
#    card:
#      type: horizontal-stack
#      cards:
#        - !include /config/lovelace/includes/include_button_meteoalarm_alert.yaml
#        - type: custom:button-card
#          color_type: blank-card
#        - type: custom:button-card
#          color_type: blank-card

or any another conditional card…

should have posted more carefully the correct screenshot:

sorry bout that
(the fold-entity-row error is about me trying to use a hui-element card there, so I can style the entities and shift them -26px left…

image

Doesn’t matter how many times I refresh I still see this…

of course I am not using HACS, so not sure about the mapping, but isn’t the error complaining it can’t find the file in another folder than you have created it now?

/config/hacsfiles/bar-card/index.m.js.map versus
/config/www/community/bar-card/index.m.js.map

?

nah, the warning (not error), say that the file loaded (it found the file) does not contain the sourcemap it expected to see in the file.

well, can only say that by adding the empty file to my resources folder (the one in www, not any other mapping) the error has disappeared in this side.

why it does want to find it is something the bar-card author could chime in on, because it started with one of the latter updates of that custom-card. I think.

So I only added that file because @petro said it was a solution for the warning/error and it has not gone away. (Note: I have the right folder - that is how HACS works)

@Gluwc can you look at this error as it’s related to your bar-card.

Thanks.

I never said it got rid of the warning. I still have the warning, I just ignore warnings because they are warnings. The beauty of silent errors and warnings is that exactly what I said. They are silent. When you get a chance, just go around to any website and hit F12. 9 times out of 10, you’ll get silent errors and warnings in the logs. Personally, I wouldn’t be to worried about this.

1 Like

Ok so what is the point of creating that file? I don’t understand…