Prometheus error: Cannot read properties of undefined (reading ‘toLowerCase’)

I am having trouble selecting metrics when creating alerts with “Builder”. When typing in “Windows”, i see a list of all the windows_exporter metrics, that are fetched succesfully from Prometheus (data source is successfully added with port 9090, metrics lookup is not disabled). Upon selecting the indexed/shown metric (when creating alert), I always get error:

An unexpected error happened
TypeError: Cannot read properties of undefined (reading ‘toLowerCase’).

Prometheus metrics are successfully fetched and can also be selected normally.
Same issue is with some dashboards when viewing some panels - under Query I get same error (sometimes it goes away on refresh page).
Also; I have some remote Windows and Linux added, and they show data correctly on Grafana dashboards…the problem is just adding metrics and viewing query’s in some dashboard panels.
Any info regarding this?

Works now! I had to also clear browser cache after upgrading prometheus. Many thanks!!!