Could not resolve './NewDialogWithTypes.vue' from src/query/QueryList.vue?vue&type=script&setup=true&lang.jsx
error during build:
Error: Could not resolve './NewDialogWithTypes.vue' from src/query/QueryList.vue?vue&type=script&setup=true&lang.jsx
at error (/home/frappe/frappe-bench/apps/insights/frontend/node_modules/rollup/dist/shared/rollup.js:198:30)
at ModuleLoader.handleResolveId (/home/frappe/frappe-bench/apps/insights/frontend/node_modules/rollup/dist/shared/rollup.js:22464:24)
at /home/frappe/frappe-bench/apps/insights/frontend/node_modules/rollup/dist/shared/rollup.js:22427:26
Running build command for insights
$ cd frontend && yarn build
$ vite build --base=/assets/insights/frontend/ && yarn copy-html-entry
vite v2.9.15 building for production...
✓ 143 modules transformed.
Could not resolve './NewDialogWithTypes.vue' from src/query/QueryList.vue?vue&type=script&setup=true&lang.jsx
error during build:
Error: Could not resolve './NewDialogWithTypes.vue' from src/query/QueryList.vue?vue&type=script&setup=true&lang.jsx
at error (/home/frappe/frappe-bench/apps/insights/frontend/node_modules/rollup/dist/shared/rollup.js:198:30)
at ModuleLoader.handleResolveId (/home/frappe/frappe-bench/apps/insights/frontend/node_modules/rollup/dist/shared/rollup.js:22464:24)
at /home/frappe/frappe-bench/apps/insights/frontend/node_modules/rollup/dist/shared/rollup.js:22427:26
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Error: Command failed: yarn build
at checkExecSyncError (node:child_process:871:11)
at execSync (node:child_process:943:15)
at run_build_command_for_apps (/home/frappe/frappe-bench/apps/frappe/esbuild/esbuild.js:436:5)
at /home/frappe/frappe-bench/apps/frappe/esbuild/esbuild.js:88:35
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
status: 1,
signal: null,
output: [ null, null, null ],
pid: 110943,
stdout: null,
stderr: null
}
node:internal/process/promises:288
triggerUncaughtException(err, true / fromPromise /);
^
Error: Command failed: yarn build
at checkExecSyncError (node:child_process:871:11)
at execSync (node:child_process:943:15)
at run_build_command_for_apps (/home/frappe/frappe-bench/apps/frappe/esbuild/esbuild.js:436:5)
at /home/frappe/frappe-bench/apps/frappe/esbuild/esbuild.js:88:35
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
status: 1,
signal: null,
output: [ null, null, null ],
pid: 110943,
stdout: null,
stderr: null
}
Node.js v18.12.1
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
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 109, in
main()
File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 18, in main
click.Group(commands=commands)(prog_name="bench")
File "/home/frappe/frappe-bench/env/lib/python3.10/site-packages/click/core.py", line 829, in call
return self.main(args, kwargs)
File "/home/frappe/frappe-bench/env/lib/python3.10/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/home/frappe/frappe-bench/env/lib/python3.10/site-packages/click/core.py", line 1259, 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 1259, 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 1066, in invoke
return ctx.invoke(self.callback, ctx.params)
File "/home/frappe/frappe-bench/env/lib/python3.10/site-packages/click/core.py", line 610, in invoke
return callback(args, **kwargs)
File "/home/frappe/frappe-bench/apps/frappe/frappe/commands/utils.py", line 86, in build
bundle(mode, apps=apps, hard_link=hard_link, verbose=verbose, skip_frappe=skip_frappe)
File "/home/frappe/frappe-bench/apps/frappe/frappe/build.py", line 257, in bundle
frappe.commands.popen(command, cwd=frappe_app_path, env=get_node_env(), raiseerr=True)
File "/home/frappe/frappe-bench/apps/frappe/frappe/commands/init.py", line 98, in popen
raise subprocess.CalledProcessError(return, command)
subprocess.CalledProcessError: Command 'yarn run production --apps insights --run-build-command' returned non-zero exit status 1.
ERROR:
subprocess.CalledProcessError: Command 'bench build --app insights' returned non-zero exit status 1.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/bin/bench", line 8, in
sys.exit(cli())
File "/usr/local/lib/python3.10/dist-packages/bench/cli.py", line 127, in cli
bench_command()
File "/usr/lib/python3/dist-packages/click/core.py", line 1128, in call
return self.main(args, kwargs)
File "/usr/lib/python3/dist-packages/click/core.py", line 1053, in main
rv = self.invoke(ctx)
File "/usr/lib/python3/dist-packages/click/core.py", line 1659, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python3/dist-packages/click/core.py", line 1395, in invoke
return ctx.invoke(self.callback, ctx.params)
File "/usr/lib/python3/dist-packages/click/core.py", line 754, in invoke
return __callback(args, kwargs)
File "/usr/local/lib/python3.10/dist-packages/bench/commands/make.py", line 159, in get_app
get_app(
File "/usr/local/lib/python3.10/dist-packages/bench/app.py", line 412, in get_app
install_resolved_deps(
File "/usr/local/lib/python3.10/dist-packages/bench/app.py", line 514, in install_resolved_deps
app.install_resolved_apps(skip_assets=skip_assets, verbose=verbose)
File "/usr/local/lib/python3.10/dist-packages/bench/utils/render.py", line 126, in wrapper_fn
return fn(*args, *kwargs)
File "/usr/local/lib/python3.10/dist-packages/bench/app.py", line 255, in install_resolved_apps
self.install(args, kwargs, resolved=True)
File "/usr/local/lib/python3.10/dist-packages/bench/utils/render.py", line 126, in wrapper_fn
return fn(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/bench/app.py", line 242, in install
install_app(
File "/usr/local/lib/python3.10/dist-packages/bench/app.py", line 586, in install_app
build_assets(bench_path=bench_path, app=app)
File "/usr/local/lib/python3.10/dist-packages/bench/utils/bench.py", line 351, in build_assets
exec_cmd(command, cwd=bench_path, env={"BENCH_DEVELOPER": "1"})
File "/usr/local/lib/python3.10/dist-packages/bench/utils/init.py", line 158, in exec_cmd
raise CommandFailedError from subprocess.CalledProcessError(return_code, cmd)
bench.exceptions.CommandFailedError
`
I get this error:
Could not resolve './NewDialogWithTypes.vue' from src/query/QueryList.vue?vue&type=script&setup=true&lang.jsx error during build: Error: Could not resolve './NewDialogWithTypes.vue' from src/query/QueryList.vue?vue&type=script&setup=true&lang.jsx at error (/home/frappe/frappe-bench/apps/insights/frontend/node_modules/rollup/dist/shared/rollup.js:198:30) at ModuleLoader.handleResolveId (/home/frappe/frappe-bench/apps/insights/frontend/node_modules/rollup/dist/shared/rollup.js:22464:24) at /home/frappe/frappe-bench/apps/insights/frontend/node_modules/rollup/dist/shared/rollup.js:22427:26
`Following apps will be installed
yarn run v1.22.19 $ node esbuild --production --apps insights --run-build-command File Size
DONE Total Build Time: 695.231ms
clean: postcss.plugin was deprecated. Migration guide: https://evilmartians.com/chronicles/postcss-8-plugin-migration
Running build command for insights $ cd frontend && yarn build $ vite build --base=/assets/insights/frontend/ && yarn copy-html-entry vite v2.9.15 building for production... ✓ 143 modules transformed. Could not resolve './NewDialogWithTypes.vue' from src/query/QueryList.vue?vue&type=script&setup=true&lang.jsx error during build: Error: Could not resolve './NewDialogWithTypes.vue' from src/query/QueryList.vue?vue&type=script&setup=true&lang.jsx at error (/home/frappe/frappe-bench/apps/insights/frontend/node_modules/rollup/dist/shared/rollup.js:198:30) at ModuleLoader.handleResolveId (/home/frappe/frappe-bench/apps/insights/frontend/node_modules/rollup/dist/shared/rollup.js:22464:24) at /home/frappe/frappe-bench/apps/insights/frontend/node_modules/rollup/dist/shared/rollup.js:22427:26 error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. Error: Command failed: yarn build at checkExecSyncError (node:child_process:871:11) at execSync (node:child_process:943:15) at run_build_command_for_apps (/home/frappe/frappe-bench/apps/frappe/esbuild/esbuild.js:436:5) at /home/frappe/frappe-bench/apps/frappe/esbuild/esbuild.js:88:35 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) { status: 1, signal: null, output: [ null, null, null ], pid: 110943, stdout: null, stderr: null } node:internal/process/promises:288 triggerUncaughtException(err, true / fromPromise /); ^
Error: Command failed: yarn build at checkExecSyncError (node:child_process:871:11) at execSync (node:child_process:943:15) at run_build_command_for_apps (/home/frappe/frappe-bench/apps/frappe/esbuild/esbuild.js:436:5) at /home/frappe/frappe-bench/apps/frappe/esbuild/esbuild.js:88:35 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) { status: 1, signal: null, output: [ null, null, null ], pid: 110943, stdout: null, stderr: null }
Node.js v18.12.1 error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. 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 109, in
main()
File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 18, in main
click.Group(commands=commands)(prog_name="bench")
File "/home/frappe/frappe-bench/env/lib/python3.10/site-packages/click/core.py", line 829, in call
return self.main(args, kwargs)
File "/home/frappe/frappe-bench/env/lib/python3.10/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/home/frappe/frappe-bench/env/lib/python3.10/site-packages/click/core.py", line 1259, 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 1259, 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 1066, in invoke
return ctx.invoke(self.callback, ctx.params)
File "/home/frappe/frappe-bench/env/lib/python3.10/site-packages/click/core.py", line 610, in invoke
return callback(args, **kwargs)
File "/home/frappe/frappe-bench/apps/frappe/frappe/commands/utils.py", line 86, in build
bundle(mode, apps=apps, hard_link=hard_link, verbose=verbose, skip_frappe=skip_frappe)
File "/home/frappe/frappe-bench/apps/frappe/frappe/build.py", line 257, in bundle
frappe.commands.popen(command, cwd=frappe_app_path, env=get_node_env(), raiseerr=True)
File "/home/frappe/frappe-bench/apps/frappe/frappe/commands/init.py", line 98, in popen
raise subprocess.CalledProcessError(return, command)
subprocess.CalledProcessError: Command 'yarn run production --apps insights --run-build-command' returned non-zero exit status 1.
ERROR:
subprocess.CalledProcessError: Command 'bench build --app insights' returned non-zero exit status 1.
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "/usr/local/bin/bench", line 8, in
sys.exit(cli())
File "/usr/local/lib/python3.10/dist-packages/bench/cli.py", line 127, in cli
bench_command()
File "/usr/lib/python3/dist-packages/click/core.py", line 1128, in call
return self.main(args, kwargs)
File "/usr/lib/python3/dist-packages/click/core.py", line 1053, in main
rv = self.invoke(ctx)
File "/usr/lib/python3/dist-packages/click/core.py", line 1659, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python3/dist-packages/click/core.py", line 1395, in invoke
return ctx.invoke(self.callback, ctx.params)
File "/usr/lib/python3/dist-packages/click/core.py", line 754, in invoke
return __callback(args, kwargs)
File "/usr/local/lib/python3.10/dist-packages/bench/commands/make.py", line 159, in get_app
get_app(
File "/usr/local/lib/python3.10/dist-packages/bench/app.py", line 412, in get_app
install_resolved_deps(
File "/usr/local/lib/python3.10/dist-packages/bench/app.py", line 514, in install_resolved_deps
app.install_resolved_apps(skip_assets=skip_assets, verbose=verbose)
File "/usr/local/lib/python3.10/dist-packages/bench/utils/render.py", line 126, in wrapper_fn
return fn(*args, *kwargs)
File "/usr/local/lib/python3.10/dist-packages/bench/app.py", line 255, in install_resolved_apps
self.install(args, kwargs, resolved=True)
File "/usr/local/lib/python3.10/dist-packages/bench/utils/render.py", line 126, in wrapper_fn
return fn(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/bench/app.py", line 242, in install
install_app(
File "/usr/local/lib/python3.10/dist-packages/bench/app.py", line 586, in install_app
build_assets(bench_path=bench_path, app=app)
File "/usr/local/lib/python3.10/dist-packages/bench/utils/bench.py", line 351, in build_assets
exec_cmd(command, cwd=bench_path, env={"BENCH_DEVELOPER": "1"})
File "/usr/local/lib/python3.10/dist-packages/bench/utils/init.py", line 158, in exec_cmd
raise CommandFailedError from subprocess.CalledProcessError(return_code, cmd)
bench.exceptions.CommandFailedError
`