Electron-vue: Builded App is blank!

Created on 17 Nov 2016  ·  5Comments  ·  Source: SimulatedGREG/electron-vue

Hi there I was just play around with this electron-vue repo to test some other simple vuejs app that I was testing. Everything is fine with npm run dev but when I compile the apps using npm run build the app just display a blank page, I had no errors during building, I'm on linux, ubuntu 14.04.

Hope you can help me, I'm new in the webpack world.

needs-docs

Most helpful comment

@SimulatedGREG yes, I was viewing a blank page because vue-router mode was set to 'history', removed that and everything worked like a charm.

All 5 comments

@paulvl

Were you able to solve the issue you were having?

@SimulatedGREG yes, I was viewing a blank page because vue-router mode was set to 'history', removed that and everything worked like a charm.

Ahh. I think this is worth nothing in the Docs.

try this :

function createWindow () {
  mainWindow = new BrowserWindow({
    //...
  })
// use this to open dev tools manualy to debug
 mainWindow.webContents.openDevTools()
//...
}

Strange, but the history mode was the reason for this issue for me, too.

EDIT: Additionally to the blank page there was no "not file found" error, there was no error in the console. And the network tab said the files were loaded (but they all had 0 kb size).

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rodrigomata picture rodrigomata  ·  3Comments

oscar-g picture oscar-g  ·  3Comments

simonwjackson picture simonwjackson  ·  3Comments

haomehaode picture haomehaode  ·  3Comments

jt-wang picture jt-wang  ·  3Comments