Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OSX dev error "process is not defined" #2

Open
spelunk opened this issue Jan 20, 2018 · 0 comments
Open

OSX dev error "process is not defined" #2

spelunk opened this issue Jan 20, 2018 · 0 comments

Comments

@spelunk
Copy link

spelunk commented Jan 20, 2018

Difficulty: easy

renderer/index.html line 11:

    if (process.env.NODE_ENV === 'development') {

That check fails in a dev deployment because process is not defined. Fix: test if process is defined:

    if (typeof process !== 'undefined' && process.env && process.env.NODE_ENV === 'development') {
spelunk added a commit that referenced this issue Jan 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant