Skip to content

Modifying process.env.NODE_ENV breaks React #62

@matthewwithanm

Description

@matthewwithanm

React has some places where it conditionally defines and calls functions. In the compiled version of React, the condition used is process.env.NODE_ENV === 'production'. Since _modifyProcessEnv() changes this value at runtime, React can wind up not defining the function, but then later attempting to call it. This seems to be the root cause of facebookarchive/nuclide#1172 and steelbrain/linter-ui-default#212.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions