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

ReferenceError: process is not defined #516

Closed
LWH2017 opened this issue Jan 26, 2018 · 2 comments · Fixed by #726
Closed

ReferenceError: process is not defined #516

LWH2017 opened this issue Jan 26, 2018 · 2 comments · Fixed by #726

Comments

@LWH2017
Copy link

LWH2017 commented Jan 26, 2018

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.

#
ReferenceError: process is not defined

How can I reproduce this problem?

#
ReferenceError: process is not defined

If visual, provide a screenshot.

#

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

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

@SimulatedGREG
Copy link
Owner

This ticket does not provide enough information on how to reproduce the issue you are running into. Please provide steps to reproduce.

@shavidzet
Copy link
Contributor

shavidzet commented Oct 22, 2018

When we build project with yarn build:web it throws runtime exception
Because process is undefined variable

if (process.env.NODE_ENV !== 'development') window.__static = require('path').join(__dirname, '/static').replace(/\\/g, '\\\\')

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

Successfully merging a pull request may close this issue.

3 participants