{"action":"created","issue":{"url":"https://api.github.com/repos/facebookincubator/create-react-app/issues/2377","repository_url":"https://api.github.com/repos/facebookincubator/create-react-app","labels_url":"https://api.github.com/repos/facebookincubator/create-react-app/issues/2377/labels{/name}","comments_url":"https://api.github.com/repos/facebookincubator/create-react-app/issues/2377/comments","events_url":"https://api.github.com/repos/facebookincubator/create-react-app/issues/2377/events","html_url":"https://github.com/facebookincubator/create-react-app/issues/2377","id":231723373,"number":2377,"title":"New problem with NODE_ENV and BABEL_ENV ","user":{"login":"nicklayb","id":15114240,"avatar_url":"https://avatars2.githubusercontent.com/u/15114240?v=3","gravatar_id":"","url":"https://api.github.com/users/nicklayb","html_url":"https://github.com/nicklayb","followers_url":"https://api.github.com/users/nicklayb/followers","following_url":"https://api.github.com/users/nicklayb/following{/other_user}","gists_url":"https://api.github.com/users/nicklayb/gists{/gist_id}","starred_url":"https://api.github.com/users/nicklayb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicklayb/subscriptions","organizations_url":"https://api.github.com/users/nicklayb/orgs","repos_url":"https://api.github.com/users/nicklayb/repos","events_url":"https://api.github.com/users/nicklayb/events{/privacy}","received_events_url":"https://api.github.com/users/nicklayb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-05-26T20:07:51Z","updated_at":"2017-05-26T21:02:17Z","closed_at":null,"body":"### Can you reproduce the problem with latest npm?\r\n\r\nyes\r\n\r\nCan you still reproduce it?\r\n\r\nyes\r\n\r\n### Description\r\n\r\nWhen creating a new react app with `create-react-app` without doing anything, only running `yarn start` gives the following error : \r\n```\r\nFailed to compile.\r\n./src/index.js\r\nModule 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: \"undefined\".\r\n (While processing preset: \"/Users/nboisvert/Git/memberzone/node_modules/babel-preset-react-app/index.js\")\r\n    at Array.map (native)\r\n```\r\n\r\n### Expected behavior\r\n\r\nRun the template React app\r\n\r\n### Actual behavior\r\n\r\nDisplays : \r\n![image](https://cloud.githubusercontent.com/assets/15114240/26510864/3ab9eece-422d-11e7-8df3-6327aae55cdf.png)\r\n\r\n### Environment\r\n\r\nRun these commands in the project folder and fill in their results:\r\n\r\n1. `npm ls react-scripts` (if you haven’t ejected): \r\n```\r\nmemberzone@0.1.0 /Users/nboisvert/Git/memberzone\r\n└── react-scripts@1.0.6\r\n```\r\n2. `node -v`: \r\n`v6.2.1`\r\n3. `npm -v`:\r\n`4.6.1`\r\n\r\nThen, specify:\r\n\r\n1. Operating system:\r\nmacOS Sierrra 10.12.5\r\n2. Browser and version:\r\nGoogle Chrome Version 58.0.3029.110 (64-bit)\r\n\r\n### Reproducible Demo\r\n\r\nDidn't add anything. Fresh install\r\n"},"comment":{"url":"https://api.github.com/repos/facebookincubator/create-react-app/issues/comments/304387457","html_url":"https://github.com/facebookincubator/create-react-app/issues/2377#issuecomment-304387457","issue_url":"https://api.github.com/repos/facebookincubator/create-react-app/issues/2377","id":304387457,"user":{"login":"gaearon","id":810438,"avatar_url":"https://avatars3.githubusercontent.com/u/810438?v=3","gravatar_id":"","url":"https://api.github.com/users/gaearon","html_url":"https://github.com/gaearon","followers_url":"https://api.github.com/users/gaearon/followers","following_url":"https://api.github.com/users/gaearon/following{/other_user}","gists_url":"https://api.github.com/users/gaearon/gists{/gist_id}","starred_url":"https://api.github.com/users/gaearon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaearon/subscriptions","organizations_url":"https://api.github.com/users/gaearon/orgs","repos_url":"https://api.github.com/users/gaearon/repos","events_url":"https://api.github.com/users/gaearon/events{/privacy}","received_events_url":"https://api.github.com/users/gaearon/received_events","type":"User","site_admin":false},"created_at":"2017-05-26T21:02:17Z","updated_at":"2017-05-26T21:02:17Z","body":"Can you try deleting `node_modules`, running `npm install` and then trying again?\r\nHow do you run the app?"}}
{"actor":{"display_login":"gaearon"}}