electron-vue icon indicating copy to clipboard operation
electron-vue copied to clipboard

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

Open adonis-albelda opened this issue 4 years ago • 0 comments
trafficstars

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.

!

  • Node version: 12.8.3
  • NPM version: 6.14.6
  • vue-cli version: (if necessary)
  • Operating System: linux

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

adonis-albelda avatar Jun 09 '21 04:06 adonis-albelda