You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
It seems that the babel preset
react-app
requires that NODE_ENV is set to eitherdevelopment
,test
, orproduction
. However, I need to deploy to astaging
environment. When trying to build my bundle with NODE_ENV set tostaging
, I get the following error: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.
The text was updated successfully, but these errors were encountered: