Hi
ERPNext: v12.28.0 (version-12)
Frappe Framework: v12.25.0 (version-12)
I have been trying to get my teeth into some customization but I have always done it
within an existing modules. Which everyone will tell me that it is not the best to do, which I
learned the hard way by having to use the --reset switch when I updated my one server.
SO I did some reading and found some stuff…
https://frappeframework.com/docs/v13/user/en/tutorial/create-an-app
( of course replacing name where applicable)
the procedure is basically…
$ bench new-app library_management
Installing library_management
$ ./env/bin/pip install -q -U -e ./apps/library_management
$ bench build --app library_management
$ FRAPPE_ENV=production node rollup/build.js --app library_management
I followed this procedure and all went well until the last instruction …
FRAPPE_ENV=production node rollup/build.js --app john_module
which yielded this error …
internal/modules/cjs/loader.js:818
throw err;
^
Error: Cannot find module ‘/home/erpnextjohn/frappe-bench/rollup/build.js’
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:815:15)
at Function.Module._load (internal/modules/cjs/loader.js:667:27)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12)
at internal/main/run_main_module.js:17:47 {
code: ‘MODULE_NOT_FOUND’,
requireStack:
I then found this discussion …
Observations…
- If I log onto the backend via SSH, I can see the new app under ./apps
- If I log onto the front-end ( desk) and go to
/desk#List/Module%20Def/List
I can see my module
3. When I just enter my server URL, I can log onto my desk, but nowhere can I find my
Module
And with all this I realised my shortfall …
I don’t know what to expect. i.e. I don’t know where my module must “show up”
My goal…
Is to create a space where I can mess around with my own doctypes within ERPNext and not
loose any work when I update. But if I look at the folder structure ( via SSH ) then my App
(John Module) is rigth next to Erpnext at ./apps. This to me means, my app is totally
separate from ERPnext.
And in the one posting I saw the structure …
App → Module → Doctype
which makes sence, but where do I see them?
If someone can just help me out of the darkness so that I can have a space to play around
with doctypes in a “safe” way, please.