Skip to content
This repository has been archived by the owner on Oct 4, 2023. It is now read-only.

npm run build:web erroneous #735

Closed
aBlackCatAndDog opened this issue Oct 30, 2018 · 5 comments
Closed

npm run build:web erroneous #735

aBlackCatAndDog opened this issue Oct 30, 2018 · 5 comments

Comments

@aBlackCatAndDog
Copy link

npm run build:web erroneous

Describe the issue / bug.

I build a project with electron-vue and implement 'npm run build:web' ,console 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.

@levidcd
Copy link

levidcd commented Oct 30, 2018

Same for me

1 similar comment
@Imfdj
Copy link

Imfdj commented Nov 6, 2018

Same for me

@miyanokomiya
Copy link

miyanokomiya commented Nov 11, 2018

Do you use vuex-electron?
If you use it, let's try this.
#751

@cory-brown
Copy link

Try adding:

 node: {
    fs: 'empty',
  },

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

@aBlackCatAndDog
Copy link
Author

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants