reactide-community / reactide

Reactide is the first dedicated IDE for React web application development.
33 stars 3 forks source link

OSX dev error "process is not defined" #2

Open spelunk opened 6 years ago

spelunk commented 6 years ago

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') {