Missing doctype item_alternative after upgrade from v10 to v11

I have upgraded from a v10 installation, but I had to move the old database, files and config to a clean installation.

Now I would like to try a recent addition in v11, but I end up with an error.

Traceback (most recent call last):
  File "/home/frappe/frappe/apps/frappe/frappe/app.py", line 61, in application
    response = frappe.handler.handle()
  File "/home/frappe/frappe/apps/frappe/frappe/handler.py", line 21, in handle
    data = execute_cmd(cmd)
  File "/home/frappe/frappe/apps/frappe/frappe/handler.py", line 56, in execute_cmd
    return frappe.call(method, **frappe.form_dict)
  File "/home/frappe/frappe/apps/frappe/frappe/__init__.py", line 1019, in call
    return fn(*args, **newargs)
  File "/home/frappe/frappe/apps/frappe/frappe/desk/form/load.py", line 71, in getdoctype
    docs = get_meta_bundle(doctype)
  File "/home/frappe/frappe/apps/frappe/frappe/desk/form/load.py", line 81, in get_meta_bundle
    bundle = [frappe.desk.form.meta.get_meta(doctype)]
  File "/home/frappe/frappe/apps/frappe/frappe/desk/form/meta.py", line 26, in get_meta
    meta = FormMeta(doctype)
  File "/home/frappe/frappe/apps/frappe/frappe/desk/form/meta.py", line 39, in __init__
  File "/home/frappe/frappe/apps/frappe/frappe/desk/form/meta.py", line 49, in load_assets
  File "/home/frappe/frappe/apps/frappe/frappe/desk/form/meta.py", line 101, in add_code
  File "/home/frappe/frappe/apps/frappe/frappe/desk/form/meta.py", line 113, in add_html_templates
    for fname in os.listdir(path):
OSError: [Errno 2] No such file or directory: '/home/frappe/frappe/apps/erpnext/erpnext/stock/doctype/item_alternative'

I would like to get ideas on how to resolve this. The file or directory really does not exist, so I think the doctypes were not synced correctly.

bench version
erpnext 10.1.81
frappe 11.1.3