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/cli.py”, line 39, in main
ret = run(fn, args)
File “/home/sigma/frappe-bench/apps/frappe/frappe/cli.py”, line 83, in run
out = globals().get(fn)(**args)
File “/home/sigma/frappe-bench/apps/frappe/frappe/cli.py”, line 67, in new_fn
return fn(*args, **new_kwargs)
File “/home/sigma/frappe-bench/apps/frappe/frappe/cli.py”, line 433, in latest
frappe.model.sync.sync_all(verbose=verbose)
File “/home/sigma/frappe-bench/apps/frappe/frappe/model/sync.py”, line 19, in sync_all
sync_for(app, force, verbose=verbose)
File “/home/sigma/frappe-bench/apps/frappe/frappe/model/sync.py”, 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/init.py”, line 379, in get_module
return importlib.import_module(modulename)
File “/usr/lib/python2.7/importlib/init.py”, line 37, in import_module
import(name)
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 https://frappe.io/docs/guide/new-app … its said we reuqire to change the modules.txt

Thanks