Electron-vue: 执行build后生成exe文件,打开成空白

Created on 26 Jan 2018  ·  6Comments  ·  Source: SimulatedGREG/electron-vue

Found an issue or bug with electron-vue? Tell me all about it!

Questions regarding how to use electron or vue are likely to be closed as they are not direct issues with this boilerplate. Please seek solutions from official documentation or their respective communities.

Describe the issue / bug.

#
执行npm run build命令后,生成了exe文件,打开exe文件,呈现空白页面

How can I reproduce this problem?

#

If visual, provide a screenshot.

#

Tell me about your development environment.
  • Node version:
  • NPM version:
  • vue-cli version: (if necessary)
  • Operating System:

If you are looking to suggest an enhancement or feature, then feel free to remove everything above.

Most helpful comment

我就喜欢用中文
webpack.renderer.config.js文件中注释掉
...Object.keys(dependencies || {}).filter(d => !whiteListedModules.includes(d))
其他问题里有人提到,不想看英文可以右键翻成中文(chrome浏览器)

All 6 comments

  1. 不要在这种国际项目中使用中文提问
  2. 信息提供不完整。你这就说了一句呈现空白页面谁知道是什么原因?人家issue template里那些信息都不知道填?
  3. 学会自己调试。稍微修改代码使得构建后弹出开发者工具,看页面地址是否正确,控制台是否报错。
  4. 建议关闭issue。

我就喜欢用中文
webpack.renderer.config.js文件中注释掉
...Object.keys(dependencies || {}).filter(d => !whiteListedModules.includes(d))
其他问题里有人提到,不想看英文可以右键翻成中文(chrome浏览器)

你喜欢中文提问,估计就要自己解决了....

注释了之后发现显示是乱码了...

你喜欢中文提问,估计就要自己解决了....

  1. 不要在这种国际项目中使用中文提问
  2. 信息提供不完整。你这就说了一句呈现空白页面谁知道是什么原因?人家issue template里那些信息都不知道填?
  3. 学会自己调试。稍微修改代码使得构建后弹出开发者工具,看页面地址是否正确,控制台是否报错。
  4. 建议关闭issue。

不会就是不会,回答不了别人的问题,自己逼事还这么多,垃圾

Hi there,
I recon any possible error can result in the blank screen after building. You should check the errors in the production env first.
To display the error, add this line "mainWindow.webContents.openDevTools()" in /src/main/index.js (inside createWindow function). Then you will see the error message in the console.
Cheers

Was this page helpful?
0 / 5 - 0 ratings