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.45k stars 1.54k forks source link

KARMA : Uncaught ReferenceError: require is not defined\nat webpack #1092

Open adonis-albelda opened 3 years ago

adonis-albelda commented 3 years ago

Found an issue or bug with electron-vue? Tell me all about it!

Questions regarding how to use electron or vue are likely to be closed as they are not direct issues with this boilerplate. Please seek solutions from official documentation or their respective communities.

Describe the issue / bug.

# I tried to upgrade my version of electron from 2.0.4 to 5.0.13. When I ran the karma test by this command 'yarn run unit', its says 'Uncaught ReferenceError: require is not defined'.

How can I reproduce this problem?

#

  1. clone the electron-vue repo
  2. change the version of electron to 5.0.13
  3. run 'npm install'
  4. run 'npm run unit'
If visual, provide a screenshot.

# karma

Tell me about your development environment.

!

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