quasarframework / quasar

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

Quasar with Electron-Builder DMG start with empty window #15359

Closed rehoehle closed 1 year ago

rehoehle commented 1 year ago

What happened?

We use Electron-Builder to build the Quasar application. When i start the program with dev-mode so

quasar dev -m electron

It's working fine and everything is loaded. When i build the project with

quasar build -m electron

i get the ZIP and DMG package but when i run the program the screen is empty. During the build there are not exceptions.

 Build succeeded

 Build mode............. electron
 Pkg quasar............. v2.11.5
 Pkg @quasar/app-vite... v1.2.0
 Pkg vite............... v2.9.15
 Debugging.............. no
 Publishing............. no
 Browser target......... es2019|edge88|firefox78|chrome87|safari13.1
 Node target............ node16
 =======================
 Output folder.......... /Users/xxxx/dist/electron

2023-02-01_12-15

I have a default installation with Quasar and Vite with Typescript.

Perhaps the ENV variable is not set and he don't load the index.html file?

mainWindow.loadURL(process.env.APP_URL);

What did you expect to happen?

The program should load the application.

Reproduction URL

https://iselectrone.de/

How to reproduce?

Build the DMG file with Electron-Builder version "^23.6.0".

Flavour

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

Areas

Electron Mode

Platforms/Browsers

Electron

Quasar info output

Operating System - Darwin(22.3.0) - darwin/arm64
NodeJs - 18.12.1

Global packages
  NPM - 8.19.2
  yarn - 1.22.19
  @quasar/cli - 2.0.0
  @quasar/icongenie - Not installed
  cordova - Not installed

Important local packages
  quasar - 2.11.5 -- Build high-performance VueJS user interfaces (SPA, PWA, SSR, Mobile and Desktop) in record time
  @quasar/app-vite - 1.2.0 -- Quasar Framework App CLI with Vite
  @quasar/extras - 1.15.10 -- Quasar Framework fonts, icons and animations
  eslint-plugin-quasar - Not installed
  vue - 3.2.45 -- The progressive JavaScript framework for building modern web UI.
  vue-router - 4.1.6
  pinia - Not installed
  vuex - Not installed
  vite - 2.9.15 -- Native-ESM powered web dev build tool
  eslint - 8.33.0 -- An AST-based pattern checker for JavaScript.
  electron - 21.4.0 -- Build cross platform desktop apps with JavaScript, HTML, and CSS
  electron-packager - Not installed
  electron-builder - 23.6.0 -- 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
  register-service-worker - 1.7.2 -- Script for registering service worker, with hooks
  @capacitor/core - Not installed
  @capacitor/cli - Not installed
  @capacitor/android - Not installed
  @capacitor/ios - Not installed

Quasar App Extensions
  *None installed*

Networking
  Host - reneh-macbook-m2.local
  en0 - 10.0.1.150

Relevant log output

No response

Additional context

No response

github-actions[bot] commented 1 year ago

Hi @rehoehle! 👋

It looks like you provided an invalid or unsupported reproduction URL. Do not use any service other than Codepen, jsFiddle, StackBlitz, Codesandbox, and GitHub. Make sure the URL you provided is correct and reachable. You can test it by visiting it in a private tab, another device, etc. Please edit your original post above and provide a valid reproduction URL as explained.

Without a proper reproduction, your issue will have to get closed.

Thank you for your collaboration. 👏

rehoehle commented 1 year ago

I found the problem. There was a needed dependency only in the devDependencies that were used in preload and there was no error.