15.10.0...15.12.0 upgrade: error in print_designer

I’m upgrading from 15.10.0 to 15.12.0 using bench update. I find this error in building assets in the print designer. Any ideas what might be amiss?

Building assets...
Assets for Release v15.12.0 don't exist
✔ Application Assets Linked                                                                                                           


yarn run v1.22.19
$ node esbuild --production --run-build-command
✘ [ERROR] Could not resolve "canvas"

    ../print_designer/print_designer/public/js/pdf.worker.min.js:22:25511:
      22 │ ...s.DOMMatrix&&a.isNodeJS&&(globalThis.DOMMatrix=require("canvas").DOMMatrix)}();!function checkPath2D(){if(globalThis....
         ╵                                                           ~~~~~~~~

  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.

✘ [ERROR] [plugin frappe-vue-style] Cannot read properties of undefined (reading 'outputs')

    /home/kornack/frappe-bench/apps/frappe/esbuild/frappe-vue-style.js:10:41:
      10 │       let files = get_files(result.metafile.outputs);
         ╵                                             ^

    at /home/kornack/frappe-bench/apps/frappe/esbuild/frappe-vue-style.js:10:42
    at /home/kornack/frappe-bench/apps/frappe/node_modules/esbuild/lib/main.js:1052:21
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

  This error came from the "onEnd" callback registered here:

    /home/kornack/frappe-bench/apps/frappe/esbuild/frappe-vue-style.js:9:8:
      9 │     build.onEnd((result) => {
        ╵           ~~~~~

    at setup (/home/kornack/frappe-bench/apps/frappe/esbuild/frappe-vue-style.js:9:9)
    at handlePlugins (/home/kornack/frappe-bench/apps/frappe/node_modules/esbuild/lib/main.js:855:23)

 ERROR  There were some problems during build

Hi @twarge,

Please raise the issue on GitHub.

Thank You!

1 Like

+1 same issue

(post deleted by author)

Issue link - Installation failing on version-15 · Issue #382 · frappe/print_designer · GitHub