SimulatedGREG / electron-vue

An Electron & Vue.js quick start boilerplate with vue-cli scaffolding, common Vue plugins, electron-packager/electron-builder, unit/e2e testing, vue-devtools, and webpack.
https://simulatedgreg.gitbooks.io/electron-vue/content/
MIT License
15.48k stars 1.55k forks source link

Module not found: Error: Can't resolve 'fs' in 'D:\Projects\sciyon-im\node_modules\electron' #1075

Open Mr-CoderW opened 3 years ago

Mr-CoderW commented 3 years ago

My Question

执行npm run build:web打包web版时报错 image 网上查了说更改webpack配置文件 尝试在webpack.web.config.js中加入以下内容 image 此时可以成功打包了,但是直接双击运行dist/web/index.html时显示为空白且控制台报错 image 在tomcat容器中也不行,报同样的错误。 求各位大佬帮忙解决!!!

My environment.