Adding new module error on update

Hi, i tried to add module in modules.txt of my new apps, but i getting this error :

Traceback (most recent call last):
File “/home/sigma/frappe-bench/env/bin/frappe”, line 9, in
load_entry_point(‘frappe==4.1.0’, ‘console_scripts’, ‘frappe’)()
File “/home/sigma/frappe-bench/apps/frappe/frappe/”, line 39, in main
ret = run(fn, args)
File “/home/sigma/frappe-bench/apps/frappe/frappe/”, line 83, in run
out = globals().get(fn)(**args)
File “/home/sigma/frappe-bench/apps/frappe/frappe/”, line 67, in new_fn
return fn(*args, **new_kwargs)
File “/home/sigma/frappe-bench/apps/frappe/frappe/”, line 433, in latest
File “/home/sigma/frappe-bench/apps/frappe/frappe/model/”, line 19, in sync_all
sync_for(app, force, verbose=verbose)
File “/home/sigma/frappe-bench/apps/frappe/frappe/model/”, line 28, in sync_for
folder = os.path.dirname(frappe.get_module(app_name + “.” + module_name).file)
File “/home/sigma/frappe-bench/apps/frappe/frappe/”, line 379, in get_module
return importlib.import_module(modulename)
File “/usr/lib/python2.7/importlib/”, line 37, in import_module
ImportError: No module named pajak

i wonder why ?

You don’t need to add a module manually. If create a new Module Def, it will automatically be added to modules.txt

oooh i see…thanks…its works…but i think you will need to update the documentation … its said we reuqire to change the modules.txt