this.metricFindQuery(...) is undefined error

I am getting following error:

Templating init failed
this.metricFindQuery(...) is undefined

randomly on every page in Grafana Kubernetes App. Then it disappears. Moreover all graphs are working fine. Any idea where that come from?

That comes from the template variable queries. Sounds like maybe a bug. Are the template variable dropdowns working correctly?

Yes, dropdown menus are working fine. Where I should look for that, is it in dashboard json files or somewhere else?

Can you look in the Chrome console and get the whole error message and stack trace? Can you figure out via the Chrome dev tools which request is triggering this error?