Frappe.ui.form.close_grid_form is not a function

Branch: staging

I create a site with only frappe installed (no ERPNext), no customization made

However I can’t open any form. For example, opening Home>Contacts>Gender>Female displays a blank page with errors in console:

formview.js:25 Uncaught TypeError: frappe.ui.form.close_grid_form is not a function
    at HTMLDocument.<anonymous> (formview.js:25)
    at HTMLDocument.dispatch (jquery.min.js:3)
    at HTMLDocument.r.handle (jquery.min.js:3)
    at Object.trigger (jquery.min.js:4)
    at HTMLDocument.<anonymous> (jquery.min.js:4)
    at Function.each (jquery.min.js:2)
    at n.fn.init.each (jquery.min.js:2)
    at n.fn.init.trigger (jquery.min.js:4)
    at init.change_to (container.js:79)
    at (factory.js:17)