bramkragten / swipe-card

Card that allows you to swipe throught multiple cards for Home Assistant Lovelace
249 stars 36 forks source link

Error Message "t.setConfig is not a function" on previously working card. #47

Open cantes534 opened 2 years ago

cantes534 commented 2 years ago

I was able to configure this card and it looks great! I have run into an issue though. The card will work for a while and then randomly upon loading the Lovelace dashboard I will get an error for this card stating "t.setConfig is not a function". If I re-upload the java script to my HA server and restart the system the card will work again... for a while.

To make things even more odd, when I'm receiving the error when accessing the dashboard from one device, it sometimes still works on another device. I'm currently see the error on my android phone but able to view the card without an error for my laptop's browser. The card had been working on my phone just minutes before.

rVlad93 commented 2 years ago

I'm having the same problem. It worked one time and now it's giving me the same error.

SmartLiving-Rocks commented 2 years ago

Thanks for your work! Have been working with your solution 3 years! Really great tool!

I just updated Home Assistant to Home Assistant 2022.4.2.

Here is what I have experienced:

Chrome Browser on OSX: It shows the t.setConfig error on the main dashboard. A copy of that card on a different lovelace dashboard is visible. Opening the lovelace card editor it rendered the card again and it showed up as expected.

Android Home Assistant App: Same behavior as described above. Main Dashboard shows the error. A copy of the card on a different dashboard shows up as expected.

Android Chrome Browser App as well as the Ecosia Browser App: None of the swiper cards are visible.

Same behavior after a reboot of the Android Phone.

iPhone 5se iOS App: None of the swiper cards are visible. After a short period of time (5 min) it started working again.

Edit: After some time, the Android main view started working again with doing anything.

Edit 2: Now I am back on Home Assistant 2021.8.6 and all the above test I have performed are positive. All browsers and Apps are showing nicely the swiper card. I still have a test running on 2022.4.2. After some time the swiper card shows up. Refreshing the site in a Chroma Browser shows the error again.

@bramkragten I also followed the thread on Home Assistant Community Forum. Please let us know if you still have time to continue the development of this great card. Thanks in advance and have a nice time!

rVlad93 commented 2 years ago

Manage to get it to work. Deleted everything related to the card and reinstalled in via HACS an everything is working as expected.

PedroKTFC commented 1 year ago

I am having the same problem. I'm running HA 2022.11 on a Pi 4 with hassio. I read somewhere I should re-download the add on. While this seems to have worked on my laptop (I have not seen the error since), it doesn't solve it on my Android phone. I tried reloading it from the phone and it seemed to work for a couple of page loads or so but then revertedd to the error and I can't see the contents (history graphs) at all.

ceinmart commented 1 year ago

Hi @bramkragten ,

I know you probably have no time to check all issues opened for your card. However, do you have any tips on how to avoid this issue? Occur with high frequency and I just to abandon your card, because this issue turns all cards into it unusable.

If have any kind of debugger, print, log where we could collect to help you solve this, please, tell us.

image