AalianKhan / mushroom-strategy

A strategy to automatically generate a dashboard using mushroom cards
MIT License
364 stars 36 forks source link

Can't find variable: structuredClone. #78

Closed MeYang901225 closed 9 months ago

MeYang901225 commented 9 months ago

"I encountered the following error after installation: Error loading the dashboard strategy: ReferenceError: Can't find variable: structuredClone. I can open it on the PC and my wife's phone without any issues, but my phone is the only one having problems. What information do I need to provide to identify where the problem is?"

DigiLive commented 9 months ago

What phone do you have and which client do you use to access Home Assistant? Is it the HA Companion App or a certain browser and which versions?

MeYang901225 commented 9 months ago

"My phone is a 13 Pro, system version 15.1.1. I've tried using mobile browsers including Safari and Chrome, as well as HA Companion, but I'm unable to open it. Here is my HAOS version information: Home Assistant 2023.10.5, Supervisor 2023.10.0, Operating System 11.0, Frontend version: 20231005.0 - latest." "Just now, I tried to log in using my colleague's Android phone and a web browser, and encountered the following error: Error loading the dashboard strategy ReferenceError: structuredClone is not defined."

MeYang901225 commented 9 months ago

I have tried both manual installation and HACS installation, but I still encounter this error.

DigiLive commented 9 months ago

Method structuredClone is part of the Web API and since roughly Q1-2022 available in most browsers. Any browser versions prior to this period are not supported.

You can check the availability of structuredClone for you browser here. As for the IOS companion, IFAIA it uses a Safari rendering engine.

I think you should update your IOS to at least version 15.4 and your apps to the latest available version.

DigiLive commented 9 months ago

@MeYang901225 Any feedback on this?

If not, I'll close the issue soon.