I have trouble installing Print Designer to a hard machine (no docker).
I can understand the instruction that I should change the path ‘canvas’ to somewhere else, but I can’t find where to fix.
Not sure what ‘canvas’ really does, but I would like to keep it, if it is the custom design GUI that I saw while I test with docker deployment.
node esbuild --production --apps print_designer --run-build-command
✘ [ERROR] Could not resolve "canvas"
../print_designer/print_designer/public/js/pdf.worker.min.js:22:25511:
22 │ ...alThis.DOMMatrix&&a.isNodeJS&&(globalThis.DOMMatrix=require("canvas").DOMMatrix)}();!function checkPath2D(){if(globalThis.Path2D...
╵ ~~~~~~~~
You can mark the path "canvas" as external to exclude it from the bundle, which will remove this
error. You can also surround this "require" call with a try/catch block to handle this failure at
run-time instead of bundle-time.
Browserslist: caniuse-lite is outdated. Please run:
npx update-browserslist-db@latest
Why you should do it regularly: https://github.com/browserslist/update-db#readme
✘ [ERROR] [plugin frappe-vue-style] Cannot read properties of undefined (reading 'outputs')
/var/www/frappe/apps/frappe/esbuild/frappe-vue-style.js:10:41:
10 │ let files = get_files(result.metafile.outputs);
╵ ^
at /var/www/frappe/apps/frappe/esbuild/frappe-vue-style.js:10:42
at /var/www/frappe/apps/frappe/node_modules/esbuild/lib/main.js:1052:21
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
This error came from the "onEnd" callback registered here:
/var/www/frappe/apps/frappe/esbuild/frappe-vue-style.js:9:8:
9 │ build.onEnd((result) => {
╵ ~~~~~
at setup (/var/www/frappe/apps/frappe/esbuild/frappe-vue-style.js:9:9)
at handlePlugins (/var/www/frappe/apps/frappe/node_modules/esbuild/lib/main.js:855:23)
ERROR There were some problems during build