Open bryan-gilbert opened 3 years ago
When I remove "electron-devtools-installer": "^3.1.0", from package.json the same problem happens (same warning) and the screen is still blank BUT the black bar across the top left is gone.
@bryan-gilbert there is a bug with Electron over paralls VM that may cause the issue you are facing. Try to disable hardware acceleration on your electron main file
@edenhermelin thank you for this suggestion. I'm having trouble locating more information. Especially about the bug because I'll need to document this in my project. Can you please suggest a site or keywords I can use to search for this? Or a link? Thanks.
sure, basically in the index file you should add the following:
app.disableHardwareAcceleration();
also, in here you can find some more relevant information: https://github.com/electron/electron/issues/22119
I found something here https://forum.parallels.com/threads/npm-electron-gui-white-canvas.353536/ Specifically, a post by Evan123:
Hi -- I just had a response back from Parallels Support about my similar case. Try this (with hardware acceleration enabled):
1. Make sure that the virtual machine is shut down (Actions > Shut Down). If it is in a suspended state, please run it and then shut down (Actions > Shut Down).
2. Go to the virtual machine configuration (see: https://kb.parallels.com/117287 ) and click "Hardware > Boot Order > Advanced Settings > Boot flags".
3. Paste the following text in the "Boot flags" field:
video.gl3=2
4. Run the virtual machine and see if the issue persists.
This fixed the problem for me. Parallels Support advised that their developers are working on a permanent fix.
Blank 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
(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
From package.json
Errors and warnings from terminal