Electron-Vue is packaged into a blank exe.

Electron-vue projects are packaged with electron-package

command: electron-packager. App-- win-- out App-- arch=x64-- version 1.0.0-- overwrite-- ignore=node_modules

clipboard.png

clipboard.png

npm run dev

clipboard.png

both yarn and cnpm have tried to remove reinstalled dependency packages

excuse me, what is the situation?

Mar.03,2021

http://www.cnblogs.com/xueyou.


is probably because of the dependency of using Taobao image installation. Here, I will clear the dependency and use npm to install and package the problem. You can try


if you use yarn and scientifically surf the Internet , there is still a problem of blank packing

.

look here

comment out

in the webpack.renderer.config.js file

.Object.keys (dependencies | | {}) .filter (d = >! whiteListedModules.includes (d))

https://github.com/SimulatedG.

what version of your NPM is it? If you open the DevTools console in the production environment and take a look at the error report, you will understand that https://github.com/SimulatedG.


I also want to know what's going on.


has the problem been solved?


all of you who have this problem are accustomed to using npm or cnpm commands to install dependencies and execute packaging, right?
Please delete the dependent library and try again with the officially recommended yarn command. This is how I solved it.


have you solved it? I'm in the same situation as you!


this is mostly caused by downloading dependencies with cnpm. Delete the node_modules of the project and try to install dependencies with npm. That's how I solved it.


I think it's mainly the path problem of the file you packed: dist
http://www.cnblogs.com/teemor.


took the electron-vue Demo of the official website and found it was still blank.
still can't find the problem, so angry!


image.png
just comment out


find webpack.renderer.config.js, find

   nodeModules: process.env.NODE_ENV !== 'production'
        ? path.resolve(__dirname, '../node_modules')
        : false

change to nodeModules:path.resolve (\ _\ _ dirname,'. / node\ _ modules')

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e90696-12d4.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e90696-12d4.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?