question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Building to a blank screen

See original GitHub issue
  • Version: 13.11.1
  • Target: Linux (AppImage)

I am trying to add electron builder to the vuepack project I have the following scripts:

"scripts": {
    "src:build": "webpack --config build/webpack.prod.js",
    "src:dev": "node build/server.js",
    "app:pack": "cd app && USE_SYSTEM_XORRISO=true build --dir",
    "app:build": "cd app && USE_SYSTEM_XORRISO=true build",
    "app:dev": "cross-env NODE_ENV=development electron app/"
  },

Now if I run npm run src:dev and npm run app:dev everything runs fine, however if I run npm run src:build and npm run app:build and run the AppImage it starts but just renders with a white screen.

I have had to create a second package.json in the app/ directory based of this issue which seems to at least let the app build.

I also read through this issue on electron-packager but I couldn’t make a lot of sense of it.

Is there anything I can do to better debug this issue? Thanks in advance!

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

11reactions
c446984928commented, Aug 30, 2017

try this :

function createWindow () {
  mainWindow = new BrowserWindow({
    //...
  })
// use this to open dev tools manualy to debug
 mainWindow.webContents.openDevTools()
//...
}
10reactions
mpalominocommented, May 8, 2018

same issue here, but only works when mainWindow.webContents.openDevTools() is called, at the moment that I comment mainWindow.webContents.openDevTools() the app start showing in blank again, and DevTools is not showing any errors 😕

Read more comments on GitHub >

github_iconTop Results From Across the Web

Blank screen is shown when building with compile errors
Issue is gone after reinstallation of Visual Studio. Build errors window wasn't docked and it was opened to full size of VS main...
Read more >
New build blank screen - PCPartPicker
New build blank screen ... Spent the whole day building my new pc just to find out it doesn't work. Rebuilt it a...
Read more >
[SOLVED] - New build everything works but black screen
The monitor does recognize there is a signal, but I just get a black screen. When I boot with everything disconnected except the...
Read more >
Blank page after running build on create-react-app
Run npm run eject · Edit file webpack.config in the config folder · Find path with "static/" or "static/js/" or "static/css/" in the...
Read more >
Black screen after building - I'm Stuck - Lightship Community
Black screen after building · Issue category: Finished build; Camera · Device type & OS version: Android 11 · Host machine & OS...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found