Skip to content

Usage of babel-preset-react-app prevents building for certain NODE_ENVs #64

@bibekg

Description

@bibekg

It seems that the babel preset react-app requires that NODE_ENV is set to either development, test, or production. However, I need to deploy to a staging environment. When trying to build my bundle with NODE_ENV set to staging, I get the following error:

ERROR in ./~/react-vis-force/dist/react-vis-force.js
Module build failed: Error: Using `babel-preset-react-app` requires that you specify `NODE_ENV` or `BABEL_ENV` environment variables. Valid values are "development", "test", and "production". Instead, received: "staging".(While processing preset: "/Users/bibek/Developer/bm/bm-web/node_modules/babel-preset-react-app/index.js")

Not too sure if this issue belongs here or in the babel-preset-react-app repository but I'd appreciate some direction on this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions