quasarframework / quasar

Quasar Framework - Build high-performance VueJS user interfaces in record time
https://quasar.dev
MIT License
25.92k stars 3.52k forks source link

Electron Build failed without msg #17467

Closed zN3utr4l closed 1 month ago

zN3utr4l commented 2 months ago

What happened?

I'm trying to build my quasar project with electron, when I run yarn quasar dev -m electron '--' --no-sandbox --disable-setuid-sandbox --https everything is fine, but if I run yarn quasar build -m electron '--' --https, the electron build stops without any information.

Only these files are generated: image

What did you expect to happen?

electron exe

Reproduction URL

https://codepen.io/rstoenescu/pen/xxEvBLR

How to reproduce?

.

Flavour

Quasar CLI with Vite (@quasar/cli | @quasar/app-vite)

Areas

Electron Mode

Platforms/Browsers

Electron

Quasar info output

Operating System - Windows_NT(10.0.22631) - win32/x64
NodeJs - 20.16.0

Global packages
  NPM - 10.8.2
  yarn - 4.4.1
  pnpm - Not installed
  bun - Not installed
  @quasar/cli - undefined
  @quasar/icongenie - Not installed
  cordova - Not installed

Important local packages
  quasar - 2.16.9 -- Build high-performance VueJS user interfaces (SPA, PWA, SSR, Mobile and Desktop) in record time
  @quasar/app-vite - 2.0.0-beta.20 -- Quasar Framework App CLI with Vite
  @quasar/extras - 1.16.12 -- Quasar Framework fonts, icons and animations
  eslint-plugin-quasar - Not installed
  vue - 3.4.38 -- The progressive JavaScript framework for building modern web UI.
  vue-router - 4.4.3
  pinia - 2.2.2 -- Intuitive, type safe and flexible Store for Vue
  vuex - Not installed
  vite - 5.4.2 -- Native-ESM powered web dev build tool
  vite-plugin-checker - Not installed
  eslint - 9.9.1 -- An AST-based pattern checker for JavaScript.
  esbuild - 0.23.1 -- An extremely fast JavaScript and CSS bundler and minifier.
  typescript - 5.5.4 -- TypeScript is a language for application scale JavaScript development
  workbox-build - Not installed
  register-service-worker - Not installed
  electron - 32.0.1 -- Build cross platform desktop apps with JavaScript, HTML, and CSS
  @electron/packager - 18.3.4 -- Customize and package your Electron app with OS-specific bundles (.app, .exe, etc.) via JS or CLI
  electron-builder - 24.13.3 -- A complete solution to package and build a ready for distribution Electron app for MacOS, Windows and Linux with “auto update” support out of the box
  @capacitor/core - Not installed
  @capacitor/cli - Not installed
  @capacitor/android - Not installed
  @capacitor/ios - Not installed

Quasar App Extensions
  *None installed*

Networking
  Host - DESKTOP-P3PADFH
  vEthernet (Default Switch) - 172.19.176.1
  vEthernet (WSL (Hyper-V firewall)) - 172.25.176.1
  Ethernet - 192.168.75.56

Relevant log output

.d88888b.
d88P" "Y88b
888     888
888     888 888  888  8888b.  .d8888b   8888b.  888d888
888     888 888  888     "88b 88K          "88b 888P"
888 Y8b 888 888  888 .d888888 "Y8888b. .d888888 888
Y88b.Y8b88P Y88b 888 888  888      X88 888  888 888
 "Y888888"   "Y88888 "Y888888  88888P' "Y888888 888
       Y8b

 Build mode............. electron
 Pkg quasar............. v2.16.9
 Pkg @quasar/app-vite... v2.0.0-beta.20
 Pkg vite............... v5.4.2
 Debugging.............. no
 Publishing............. no

 App • Using quasar.config.ts in "ts" format
 App •  WAIT  • Compiling of Electron UI with Vite in progress...
node_modules/@microsoft/signalr/dist/esm/Utils.js (189:0): A comment

"/*#__PURE__*/"

in "node_modules/@microsoft/signalr/dist/esm/Utils.js" contains an annotation that Rollup cannot interpret due to the position of the comment. The comment will be removed to avoid issues.
node_modules/@microsoft/signalr/dist/esm/Utils.js (207:0): A comment

"/*#__PURE__*/"

in "node_modules/@microsoft/signalr/dist/esm/Utils.js" contains an annotation that Rollup cannot interpret due to the position of the comment. The comment will be removed to avoid issues.

**Some eslint error**

[plugin:vite:reporter] [plugin vite:reporter]
(!) G:/tt/tt.gg/tt.gg.client/src/boot/axios.ts is dynamically imported by G:/tt/tt.gg/tt.gg.client/.quasar/prod-electron/client-entry.js but also statically imported by G:/tt/tt.gg/tt.gg.client/src/api/accounts-api.ts, G:/tt/tt.gg/tt.gg.client/src/api/agv-api.ts, G:/tt/tt.gg/tt.gg.client/src/api/roles-api.ts, G:/tt/tt.gg/tt.gg.client/src/api/server-api.ts, G:/tt/tt.gg/tt.gg.client/src/api/users-api.ts, dynamic import will not move module into another chunk.

 App •  DONE  • Electron UI compiled with success by Vite • 7773ms

 App •  WAIT  • Compiling of Electron Main with Esbuild in progress...
 App •  DONE  • Electron Main compiled with success by Esbuild • 39ms

 App •  WAIT  • Compiling of Electron Preload (electron-preload) with Esbuild in progress...
 App •  DONE  • Electron Preload (electron-preload) compiled with success by Esbuild • 12ms

 Build summary with important files:
 ╔════════════════════════════════════╤═══════════╗
 ║                              Asset │      Size ║
 ╟────────────────────────────────────┼───────────╢
 ║                   electron-main.js │   0.76 KB ║
 ║       assets/agv-store-DMgo6rcc.js │   0.18 KB ║
 ║      assets/ClosePopup-B2OItTHL.js │   4.50 KB ║
 ║      assets/directives-B9NDvUbc.js │   0.70 KB ║
 ║   assets/ErrorNotFound-BDV5X9Bm.js │   0.51 KB ║
 ║    assets/HmiDashboard-Bwg41Qfa.js │   3.78 KB ║
 ║            assets/i18n-gKQXhIq9.js │   3.78 KB ║
 ║           assets/index-SsA2AGug.js │ 385.53 KB ║
 ║       assets/index.esm-D6wjKUDF.js │ 226.86 KB ║
 ║       assets/LoginPage-7YbE812J.js │   2.08 KB ║
 ║ assets/MachineStatuses-CqLHX0VB.js │   3.51 KB ║
 ║      assets/MainLayout-DdRPESDZ.js │  41.75 KB ║
 ║     assets/ManageUsers-5TdvrlRH.js │  70.61 KB ║
 ║    assets/modbus-store-CSt9fREZ.js │   0.18 KB ║
 ║           assets/QCard-DwxxiDSp.js │   0.86 KB ║
 ║    assets/QCardActions-iw4AAVZV.js │   0.33 KB ║
 ║            assets/QImg-C-7_cfPj.js │   3.41 KB ║
 ║      assets/QItemLabel-CcbZbWKy.js │   2.93 KB ║
 ║           assets/QList-DFaaHXzn.js │   0.56 KB ║
 ║         assets/StandBy-F4Gptm1H.js │   0.46 KB ║
 ║     assets/use-timeout-8apcZ4yX.js │   0.26 KB ║
 ║                i18n/ar/keyboard.js │   0.45 KB ║
 ║                i18n/bg/keyboard.js │   0.45 KB ║
 ║                i18n/cs/keyboard.js │   0.45 KB ║
 ║                i18n/de/keyboard.js │   0.45 KB ║
 ║                i18n/el/keyboard.js │   0.45 KB ║
 ║                i18n/en/keyboard.js │   0.45 KB ║
 ║                i18n/es/keyboard.js │   0.45 KB ║
 ║                i18n/fr/keyboard.js │   0.45 KB ║
 ║                i18n/he/keyboard.js │   0.45 KB ║
 ║                i18n/it/keyboard.js │   0.45 KB ║
 ║                i18n/ja/keyboard.js │   0.45 KB ║
 ║                i18n/ko/keyboard.js │   0.45 KB ║
 ║                i18n/nl/keyboard.js │   0.45 KB ║
 ║                i18n/pl/keyboard.js │   0.45 KB ║
 ║                i18n/ru/keyboard.js │   0.45 KB ║
 ║                i18n/tr/keyboard.js │   0.45 KB ║
 ║                i18n/zh/keyboard.js │   0.45 KB ║
 ╟────────────────────────────────────┼───────────╢
 ║          assets/index-CCwEULv2.css │   4.87 KB ║
 ║          assets/index-CP-4TCCj.css │ 197.98 KB ║
 ╟────────────────────────────────────┼───────────╢
 ║                  package-lock.json │   0.00 KB ║
 ║                       package.json │   0.60 KB ║
 ║                 i18n/ar/index.json │   0.00 KB ║
 ║                 i18n/bg/index.json │   0.00 KB ║
 ║                 i18n/cs/index.json │   0.00 KB ║
 ║                 i18n/de/index.json │   0.00 KB ║
 ║                 i18n/el/index.json │   0.00 KB ║
 ║                 i18n/en/index.json │   1.67 KB ║
 ║                 i18n/es/index.json │   0.00 KB ║
 ║                 i18n/fr/index.json │   0.00 KB ║
 ║                 i18n/he/index.json │   0.00 KB ║
 ║                 i18n/it/index.json │   1.82 KB ║
 ║                 i18n/ja/index.json │   0.00 KB ║
 ║                 i18n/ko/index.json │   0.00 KB ║
 ║                 i18n/nl/index.json │   0.00 KB ║
 ║                 i18n/pl/index.json │   0.00 KB ║
 ║                 i18n/ru/index.json │   0.00 KB ║
 ║                 i18n/tr/index.json │   0.00 KB ║
 ║                 i18n/zh/index.json │   0.00 KB ║
 ╟────────────────────────────────────┼───────────╢
 ║                         index.html │   0.72 KB ║
 ╚════════════════════════════════════╧═══════════╝

 App • Installing UnPackaged folder production dependencies...
 App • [sync] Running "yarn workspaces focus --all --production" in G:\tt\tt.gg\tt.gg.client\dist\electron\UnPackaged

➤ YN0000: · Yarn 4.4.1
➤ YN0000: ┌ Resolution step
➤ YN0085: │ - 7zip-bin@npm:5.2.0, @aashutoshrathi/word-wrap@npm:1.2.6, @babel/code-frame@npm:7.24.2, @babel/helper-string-parser@npm:7.24.1, @babel/helper-validator-identifier@npm:7.22.20, and 781 more.
➤ YN0000: └ Completed
➤ YN0000: ┌ Fetch step
➤ YN0013: │ 72 packages were added to the project (+ 40.49 MiB).
➤ YN0000: └ Completed
➤ YN0000: ┌ Link step
➤ YN0007: │ vue-demi@npm:0.14.10 [0edc3] must be built because it never has been before or the last one failed
➤ YN0000: └ Completed in 3s 373ms
➤ YN0000: · Done in 3s 642ms
 App •  WAIT  • Bundling app with electron/packager...

**Some eslint error**

✖ 44 problems (18 errors, 26 warnings)

Additional context

No response

zN3utr4l commented 2 months ago

Sometimes an extra line comes out:

App •  WAIT  • Bundling app with electron/packager...
Packaging app for platform win32 x64 using electron v32.0.1
rstoenescu commented 1 month ago

Same underlying problem as for https://github.com/quasarframework/quasar/issues/17365