redux-offline-examples icon indicating copy to clipboard operation
redux-offline-examples copied to clipboard

fix for babel-preset-react-app babel env option issue

Open epicallan opened this issue 8 years ago • 0 comments
trafficstars

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

epicallan avatar May 27 '17 11:05 epicallan