pietervdvn / MapComplete

An easy-to-use webapp to edit OpenStreetMap
https://mapcomplete.org
212 stars 90 forks source link

[BUG] Uncaught (in promise) TypeError: y.featureSwitches is undefined #1985

Closed Binnette closed 3 months ago

Binnette commented 3 months ago

I encounter this JS error when I try to edit, via the studio, my own theme "fruit-tree". Then the screen is completely stuck are the only "exit" is to fully reload the studio web page.

So I am stuck with this bugged "fruit-tree" theme that I created.

Edit : even when I try to edit a predefined theme (not made by me), I get the same error. Maybe the bug does not come from my theme.

For info, I tried on Firefox. On edge, I have a similur issue :

TagRenderingEditable.svelte:77 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'featureSwitchIsDebugging')

Binnette commented 3 months ago

Wow that was fast 🚀🚀🚀 Thanks a lot @pietervdvn

PS : for people still encountering this bug, make sure to clean browser cache 👍

pietervdvn commented 3 months ago

I was about to ask if you still had this issue, but apparently not :)

It is the console log wgich pointed towards the error which made it easy to fix, even though I couldn't reproduce