NagariaHussain / doppio

A Frappe app (CLI) to magically setup single page applications and Vue/React powered desk pages on your custom Frappe apps.
MIT License
196 stars 75 forks source link

FileNotFoundError: [Errno 2] No such file or directory: '../apps/testfrappeui/frontend/src/router.js' #37

Open 2old4thisShit opened 1 month ago

2old4thisShit commented 1 month ago

frappe@WSJSANCHEZ:~/frappe-bench$ bench add-frappe-ui Dashboard Name [frontend]: frontend App Name: testfrappeui Adding Frappe UI starter to testfrappeui... ! destination directory is not empty, aborting. Use --force to override yarn install v1.22.19 warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json. [1/4] Resolving packages... success Already up-to-date. Done in 0.18s. Traceback (most recent call last): File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "/usr/lib/python3.10/runpy.py", line 86, in _run_code exec(code, run_globals) File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 114, in main() File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 20, in main click.Group(commands=commands)(prog_name="bench") File "/home/frappe/frappe-bench/env/lib/python3.10/site-packages/click/core.py", line 1157, in call return self.main(args, kwargs) File "/home/frappe/frappe-bench/env/lib/python3.10/site-packages/click/core.py", line 1078, in main rv = self.invoke(ctx) File "/home/frappe/frappe-bench/env/lib/python3.10/site-packages/click/core.py", line 1688, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/home/frappe/frappe-bench/env/lib/python3.10/site-packages/click/core.py", line 1688, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/home/frappe/frappe-bench/env/lib/python3.10/site-packages/click/core.py", line 1434, in invoke return ctx.invoke(self.callback, ctx.params) File "/home/frappe/frappe-bench/env/lib/python3.10/site-packages/click/core.py", line 783, in invoke return __callback(args, **kwargs) File "/home/frappe/frappe-bench/apps/doppio/doppio/commands/init.py", line 49, in add_frappe_ui add_frappe_ui_starter(name, app) File "/home/frappe/frappe-bench/apps/doppio/doppio/commands/init.py", line 66, in add_frappe_ui_starter replace_frontend_name_in_starter(app, name) File "/home/frappe/frappe-bench/apps/doppio/doppio/commands/init.py", line 76, in replace_frontend_name_in_starter with file_path.open("r") as f: File "/usr/lib/python3.10/pathlib.py", line 1119, in open return self._accessor.open(self, mode, buffering, encoding, errors, FileNotFoundError: [Errno 2] No such file or directory: '../apps/testfrappeui/frontend/src/router.js'

2old4thisShit commented 4 days ago

@NagariaHussain

Again today with a new app for testing purposes:

image

image

2old4thisShit commented 4 days ago

It seems that it's looking for router.js when the router is actually in /src/router/index.js.

image