frontend
frontend copied to clipboard
`undefined is not an object (evaluating 'this._map.layerPointToLatLng')` in Zone editor
Checklist
- [X] I have updated to the latest available Home Assistant version.
- [X] I have cleared the cache of my browser.
- [X] I have tried a different browser to see if it is related to my browser.
Describe the issue you are experiencing
I see this in Safari (and the macOS app), but not in Chrome or Firefox.
When I edit a Zone, I get an error showing up in the top of the zone details dialog (although the changes do seem to change).
Describe the behavior you expected
I expected it to save without error, and display a "success" message, and/or close the dialog.
Steps to reproduce the issue
- Click on Map in the sidebar
- Click Edit (pencil icon, top-right)
- Select a zone to edit (pencil icon next to a zone)
- Modify the radius
- Click Update
- Observe error
undefined is not an object (evaluating 'this._map.layerPointToLatLng')
What version of Home Assistant Core has the issue?
2021.12.0
What was the last working version of Home Assistant Core?
No response
In which browser are you experiencing the issue with?
Safari Version 15.1 (16612.2.9.1.30, 16612)
Which operating system are you using to run this browser?
macOS Big Sur 11.6.1 (20G224)
State of relevant entities
No response
Problem-relevant frontend configuration
No response
Javascript errors shown in your browser console/inspector
No response
Additional information
No response
Seems to be Safari specific. I just tested it on Win 10 + Chrome and there it works fine (as does Chrome on macOS according to OP).
The function layerPointToLatLng that raises the error is from the Leaflet library that we use for map rendering.
Can confirm that for 2022.2.6, on RPi 2 with HA OS, using Safari to edit zones, this still happens.
Conformation of this happening as well. I'm running 2022.2.9 via the Docker Image and this happens when using Safari, of which I am using the latest Safari version (Version 15.3 (17612.4.9.1.8))
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
Still around on 2022.5.5 on a VM with Safari 15.4 (17613.1.17.1.6).
Confirmed still happening. Safari Version 15.5 (17613.2.7.1.8)
Still happening on Safari 15.6.1, HA 2022.9.4
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.