Blank window when serving Electron app Ubuntu 20.04
See original GitHub issueBlank window when serving app. Clean new install of Vue 2 (no router, no veux, etc) with electron builder on fresh Ubuntu 20.4 container
To Reproduce Parallels 16 for Mac New Ubuntu 20.4 container
4 sudo apt update
5 sudo apt install -y curl
6 sudo apt install -y git
7 curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash -
8 sudo apt install -y nodejs
9 sudo apt install -y npm
13 sudo ln -s /usr/bin/python3 /usr/bin/python
14 yarn global add @vue/cli
21 vue --version
31 vue create helloworld
# accept the basic Vue 2 with nothing adding
32 cd helloworld/
33 yarn serve
34 vue add electron-builder
# choose Electron 12
36 export ELECTRON_ENABLE_LOGGING=1
37 yarn electron:serve
(Note that not all of the above are needed for the Vue app but I’m providing the exact steps I took to create the problem.)
Expected behavior The electron app to open and display the Vue contents
Screenshots
Environment (please complete the following information): Versions
~/helloworld$ yarn versions
yarn versions v1.22.5
{
yarn: '1.22.5',
helloworld: '0.1.0',
node: '16.4.1',
v8: '9.1.269.36-node.14',
uv: '1.41.0',
zlib: '1.2.11',
brotli: '1.0.9',
ares: '1.17.1',
modules: '93',
nghttp2: '1.42.0',
napi: '8',
llhttp: '6.0.2',
openssl: '1.1.1k+quic',
cldr: '39.0',
icu: '69.1',
tz: '2021a',
unicode: '13.0',
ngtcp2: '0.1.0-DEV',
nghttp3: '0.1.0-DEV'
}
From package.json
"dependencies": {
"core-js": "^3.6.5",
"vue": "^2.6.11"
},
"devDependencies": {
"@vue/cli-plugin-babel": "~4.5.0",
"@vue/cli-plugin-eslint": "~4.5.0",
"@vue/cli-service": "~4.5.0",
"babel-eslint": "^10.1.0",
"electron": "^12.0.0",
"electron-devtools-installer": "^3.1.0",
"eslint": "^6.7.2",
"eslint-plugin-vue": "^6.2.2",
"vue-cli-plugin-electron-builder": "~2.1.1",
"vue-template-compiler": "^2.6.11"
},
Errors and warnings from terminal
INFO Launching Electron...
(node:167088) ExtensionLoadWarning: Warnings loading extension at /home/parallels/.config/helloworld/extensions/nhdogjmejiglipccpnnnanhbledajbpd:
Unrecognized manifest key 'browser_action'.
Unrecognized manifest key 'update_url'.
Permission 'contextMenus' is unknown or URL pattern is malformed.
Cannot load extension with file or directory name _metadata. Filenames starting with "_" are reserved for use by the system.
(Use `electron --trace-warnings ...` to show where the warning was created)
at chrome-extension://dkjannnnnhmlliecgmohkjpglfdmkicm/build/background.js:1:2246", source: chrome-extension://dkjannnnnhmlliecgmohkjpglfdmkicm/_generated_background_page.html (0)
Issue Analytics
- State:
- Created 2 years ago
- Comments:5
Top Results From Across the Web
Electron apps are blank / empty on startup [SOLVABLE] - Linux
I'm experiencing the same issues. I've had this problem running Ubuntu (Xubuntu minimum install) 22.04 on my 12th gen i7 Framework and my...
Read more >Electron gives blank Screen when try to serve it - Stack Overflow
I have this problem regarding electron , I tried to upgrade my electron version from 7.0.0 to 18.2.3 but I got stumbled in...
Read more >Ubuntu 22.04 does not open applications, shows black screen ...
When I open any of the applications expect ubuntu's system softwares, it just opens a black window and the app it self does...
Read more >Building an Electron App in Windows with WSL 2 and Ubuntu
Windows Subsystem for Linux (WSL) version 2 provides a native Linux ... to build cross-platform apps with Ubuntu 20.04, Electron, and Vue.
Read more >Empty dropdown menus - Snapcraft forum
can you find any electron app where it works ? perhaps the apps you use use the ancient ... series 16 ubuntu 20.04...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I found something here https://forum.parallels.com/threads/npm-electron-gui-white-canvas.353536/ Specifically, a post by Evan123:
sure, basically in the index file you should add the following:
also, in here you can find some more relevant information: https://github.com/electron/electron/issues/22119