Skip to content

Conversation

@epicallan
Copy link

@epicallan epicallan commented May 27, 2017

The issue: Using babel-preset-react-app requires that you specify NODE_ENV or BABEL_ENV environment variables
I have seen a similar issue while using next.js.

My dev environment is:
mac 10.12.4
node v7.10.0

This issue seems not to be present on my ubuntu dev environment. It seems to be related to this issue in the babel repo

And setting NODE_ENV doesn't fix it thats why i used BABEL_ENV

tarting the development server... Module build failed: Error: Using `babel-preset-react-app` requires that you specify `NODE_ENV` or `BABEL_ENV` environment variables. Valid values are "deve lopment", "test", and "production". Instead, received: "undefined". (While processing preset: "/Users/allan/apps/redux-offline-examples/apollo-web/node_modu les/babel-preset-react-app/index.js") at Array.map (native) @ multi main

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

Successfully merging this pull request may close these issues.

1 participant