Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bibekg opened this issue Apr 4, 2018 · 0 comments
Open

Comments

@bibekg
Copy link

bibekg commented Apr 4, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant