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.

Home Page:https://simulatedgreg.gitbooks.io/electron-vue/content/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Mr-CoderW opened this issue · comments

My Question

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

My environment.

  • Node version:10.15.3
  • NPM version:6.4.1
  • vue-cli version: 4.5.12
  • Operating System:window 10