react-vis-force icon indicating copy to clipboard operation
react-vis-force copied to clipboard

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

Open bibekg opened this issue 6 years ago • 0 comments

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.

bibekg avatar Apr 04 '18 21:04 bibekg