princejwesley/Mancy

NODE_ENV

sbuljac opened this issue · 3 comments

When I try to set process.env.NODE_ENV = 'development' it just get blocked.

@sbuljac problem is in 'react.js' interaction.

// ReactMount.js
if ("production" !== process.env.NODE_ENV) {
  /** __DEV__-only mapping from reactRootID to root elements. */
  var rootElementsByReactRootID = {}; // this variable is not available when we switch to development
}
[(set here)](https://github.com/princejwesley/Mancy/blob/cd0bc938dce89a171b09f0862e22d143c8769eb1/src/Startup.js#L3) -- this is an old comment (console instances are decoupled long back and removing this line will fix #152

Unfortunately process instance is shared between app and user context. I'll look into that

Issue is fixed in master.

Ok, thx