Unable to find module path in custom app after git push


We have a custom app, which is already there in bitbucket. After creating a module and pushing it to new branch and then doing git pull, it is giving the following error:
The app is in ERPNext version v10.1.16 and the module which I created is in version v11 developer version.

Traceback (most recent call last):
File “/home/administrator/frappe-bench/apps/frappe/frappe/app.py”, line 62, in application
response = frappe.handler.handle()
File “/home/administrator/frappe-bench/apps/frappe/frappe/handler.py”, line 22, in handle
data = execute_cmd(cmd)
File “/home/administrator/frappe-bench/apps/frappe/frappe/handler.py”, line 55, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File “/home/administrator/frappe-bench/apps/frappe/frappe/init.py”, line 942, in call
return fn(*args, **newargs)
File “/home/administrator/frappe-bench/apps/frappe/frappe/desk/form/load.py”, line 71, in getdoctype
docs = get_meta_bundle(doctype)
File “/home/administrator/frappe-bench/apps/frappe/frappe/desk/form/load.py”, line 81, in get_meta_bundle
bundle = [frappe.desk.form.meta.get_meta(doctype)]
File “/home/administrator/frappe-bench/apps/frappe/frappe/desk/form/meta.py”, line 24, in get_meta
meta = FormMeta(doctype)
File “/home/administrator/frappe-bench/apps/frappe/frappe/desk/form/meta.py”, line 34, in init
File “/home/administrator/frappe-bench/apps/frappe/frappe/desk/form/meta.py”, line 41, in load_assets
File “/home/administrator/frappe-bench/apps/frappe/frappe/desk/form/meta.py”, line 68, in add_code
path = os.path.join(get_module_path(self.module), ‘doctype’, scrub(self.name))
File “/home/administrator/frappe-bench/apps/frappe/frappe/modules/utils.py”, line 147, in get_module_path
return frappe.get_module_path(module)
File “/home/administrator/frappe-bench/apps/frappe/frappe/init.py”, line 723, in get_module_path
return get_pymodule_path(local.module_app[module] + “.” + module, *joins)
KeyError: ‘tearp_wage’

Kindly help with the issue.

Just to clarify, the Module code (that you made) is currently in the custom app right?

Did you do a bench migrate after the git pull? And was the module/app added to frappe via the bench get-app command?