Electron-vue: npm run build:web erroneous

Created on 30 Oct 2018  路  5Comments  路  Source: SimulatedGREG/electron-vue

npm run build:web erroneous

Describe the issue / bug.

I build a project with electron-vue and implement 'npm run build:web' 锛宑onsole report many errors , build error.

How can I reproduce this problem?

# first, use electron-vue build a project;
second, implement 'npm install' to install rely on;
third, implement 'npm run build:web' to build a web package and this step will erroneous.

If visual, provide a screenshot.

#
image

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

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

Most helpful comment

Try adding:

 node: {
    fs: 'empty',
  },

to the webConfig variable, inside of the webpack.web.config.js file.

All 5 comments

Same for me

Same for me

Do you use vuex-electron?
If you use it, let's try this.
https://github.com/SimulatedGREG/electron-vue/pull/751

Try adding:

 node: {
    fs: 'empty',
  },

to the webConfig variable, inside of the webpack.web.config.js file.

@SmilinSamurai Thank you. I tried the advice you gave and solved the problem.

Was this page helpful?
0 / 5 - 0 ratings