{"action":"created","issue":{"url":"https://api.github.com/repos/zeit/next.js/issues/538","repository_url":"https://api.github.com/repos/zeit/next.js","labels_url":"https://api.github.com/repos/zeit/next.js/issues/538/labels{/name}","comments_url":"https://api.github.com/repos/zeit/next.js/issues/538/comments","events_url":"https://api.github.com/repos/zeit/next.js/issues/538/events","html_url":"https://github.com/zeit/next.js/issues/538","id":197697433,"number":538,"title":"[2.0.0-beta.3] .babelrc breaks build","user":{"login":"Zaiban","id":9568791,"avatar_url":"https://avatars.githubusercontent.com/u/9568791?v=3","gravatar_id":"","url":"https://api.github.com/users/Zaiban","html_url":"https://github.com/Zaiban","followers_url":"https://api.github.com/users/Zaiban/followers","following_url":"https://api.github.com/users/Zaiban/following{/other_user}","gists_url":"https://api.github.com/users/Zaiban/gists{/gist_id}","starred_url":"https://api.github.com/users/Zaiban/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zaiban/subscriptions","organizations_url":"https://api.github.com/users/Zaiban/orgs","repos_url":"https://api.github.com/users/Zaiban/repos","events_url":"https://api.github.com/users/Zaiban/events{/privacy}","received_events_url":"https://api.github.com/users/Zaiban/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-12-27T12:39:11Z","updated_at":"2016-12-27T13:44:27Z","closed_at":null,"body":"Updating to beta 3 broke the build system. Looks like the presets wont load at all, error:\r\n```\r\n> Using .babelrc defined in your app root\r\n> Using \"webpack\" config function defined in next.config.js.\r\n{ SyntaxError: unknown: Unexpected token (11:13)\r\n   9 |     const styletron = flush();\r\n  10 |     const css = styletron ? styletron.getCss() : null;\r\n> 11 |     return { ...page, css };\r\n     |              ^\r\n  12 |   }\r\n  13 | \r\n  14 |   render() {\r\n\r\n``` \r\n.babelrc:\r\n```\r\n{\r\n  \"presets\" : [\r\n    \"next/babel\",\r\n    \"stage-0\"\r\n  ]\r\n}\r\n```\r\nReverting back to beta 2 fixes the issue. Removing .babelrc also fixes it, but then the tests wont work as they depend on babel. I also tried with various preset configs and even with just \"next/babel\" it still gives the same error."},"comment":{"url":"https://api.github.com/repos/zeit/next.js/issues/comments/269328007","html_url":"https://github.com/zeit/next.js/issues/538#issuecomment-269328007","issue_url":"https://api.github.com/repos/zeit/next.js/issues/538","id":269328007,"user":{"login":"arunoda","id":50838,"avatar_url":"https://avatars.githubusercontent.com/u/50838?v=3","gravatar_id":"","url":"https://api.github.com/users/arunoda","html_url":"https://github.com/arunoda","followers_url":"https://api.github.com/users/arunoda/followers","following_url":"https://api.github.com/users/arunoda/following{/other_user}","gists_url":"https://api.github.com/users/arunoda/gists{/gist_id}","starred_url":"https://api.github.com/users/arunoda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arunoda/subscriptions","organizations_url":"https://api.github.com/users/arunoda/orgs","repos_url":"https://api.github.com/users/arunoda/repos","events_url":"https://api.github.com/users/arunoda/events{/privacy}","received_events_url":"https://api.github.com/users/arunoda/received_events","type":"User","site_admin":false},"created_at":"2016-12-27T13:44:27Z","updated_at":"2016-12-27T13:44:27Z","body":"Thanks @Zaiban.\r\nThis happens when introduced a custom document.\r\nThis will be fixed with https://github.com/zeit/next.js/pull/534"}}
{"actor":{"display_login":"arunoda"}}