Mancy icon indicating copy to clipboard operation
Mancy copied to clipboard

NODE_ENV

Open sbuljac opened this issue 7 years ago • 3 comments

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

sbuljac avatar Oct 08 '16 13:10 sbuljac

@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

princejwesley avatar Oct 08 '16 14:10 princejwesley

Issue is fixed in master.

princejwesley avatar Oct 08 '16 15:10 princejwesley

Ok, thx

sbuljac avatar Oct 08 '16 18:10 sbuljac