{"action":"created","issue":{"url":"https://api.github.com/repos/zeit/styled-jsx/issues/454","repository_url":"https://api.github.com/repos/zeit/styled-jsx","labels_url":"https://api.github.com/repos/zeit/styled-jsx/issues/454/labels{/name}","comments_url":"https://api.github.com/repos/zeit/styled-jsx/issues/454/comments","events_url":"https://api.github.com/repos/zeit/styled-jsx/issues/454/events","html_url":"https://github.com/zeit/styled-jsx/issues/454","id":331093631,"node_id":"MDU6SXNzdWUzMzEwOTM2MzE=","number":454,"title":"Upon Next v6 upgrade, global styles got broken","user":{"login":"voxmachina","id":872984,"node_id":"MDQ6VXNlcjg3Mjk4NA==","avatar_url":"https://avatars1.githubusercontent.com/u/872984?v=4","gravatar_id":"","url":"https://api.github.com/users/voxmachina","html_url":"https://github.com/voxmachina","followers_url":"https://api.github.com/users/voxmachina/followers","following_url":"https://api.github.com/users/voxmachina/following{/other_user}","gists_url":"https://api.github.com/users/voxmachina/gists{/gist_id}","starred_url":"https://api.github.com/users/voxmachina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/voxmachina/subscriptions","organizations_url":"https://api.github.com/users/voxmachina/orgs","repos_url":"https://api.github.com/users/voxmachina/repos","events_url":"https://api.github.com/users/voxmachina/events{/privacy}","received_events_url":"https://api.github.com/users/voxmachina/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-11T08:37:16Z","updated_at":"2018-06-11T15:04:18Z","closed_at":null,"author_association":"NONE","body":"#### Do you want to request a *feature* or report a *bug*?\r\nI want to report a Bug\r\n\r\n#### What is the current behavior?\r\nWhen upgrading to Next v6.0.3, my global styles have stopped working displaying the message: \"styles is not defined\", I'm currently using styled-jsx with styled-jsx-css-loader\r\n\r\n#### If the current behavior is a bug, please provide the steps to reproduce and possibly a minimal demo or testcase in the form of a Next.js app, CodeSandbox URL or similar\r\n\r\n1. Upgrade application to Next 6.0.3\r\n2. Follow the steps mentioned at the following link to update the Redux dependencies also: https://github.com/kirill-konshin/next-redux-wrapper#upgrade\r\n\r\nGit repo with the use case in action, simple setup from scratch and it fails exactly the same:\r\nhttps://github.com/voxmachina/nextjs-6-with-styled-jsx-demo\r\n\r\n#### What is the expected behavior?\r\nI would expect that the stylesheets would behave the same way as before and not break, note that only the \"global\" ones are failing, the others (scopped) are working ok as before.\r\n\r\n#### Environment (include versions)\r\n\r\n* OS: macOS High Sierra (10.13.4)\r\n* Browser: Chrome 66.0.3359.181\r\n* styled-jsx (version): 2.2.6\r\n\r\n#### Did this work in previous versions?\r\nYes, it did work before the upgrade\r\n"},"comment":{"url":"https://api.github.com/repos/zeit/styled-jsx/issues/comments/396276126","html_url":"https://github.com/zeit/styled-jsx/issues/454#issuecomment-396276126","issue_url":"https://api.github.com/repos/zeit/styled-jsx/issues/454","id":396276126,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NjI3NjEyNg==","user":{"login":"blackbing","id":47012,"node_id":"MDQ6VXNlcjQ3MDEy","avatar_url":"https://avatars2.githubusercontent.com/u/47012?v=4","gravatar_id":"","url":"https://api.github.com/users/blackbing","html_url":"https://github.com/blackbing","followers_url":"https://api.github.com/users/blackbing/followers","following_url":"https://api.github.com/users/blackbing/following{/other_user}","gists_url":"https://api.github.com/users/blackbing/gists{/gist_id}","starred_url":"https://api.github.com/users/blackbing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blackbing/subscriptions","organizations_url":"https://api.github.com/users/blackbing/orgs","repos_url":"https://api.github.com/users/blackbing/repos","events_url":"https://api.github.com/users/blackbing/events{/privacy}","received_events_url":"https://api.github.com/users/blackbing/received_events","type":"User","site_admin":false},"created_at":"2018-06-11T15:04:18Z","updated_at":"2018-06-11T15:04:18Z","author_association":"NONE","body":"I have similar problem. https://github.com/zeit/next.js/issues/4239#issuecomment-392468298 has explained the correct way to config babel. But it can not solve when run with jest.\r\n\r\ncheck out this. https://github.com/zeit/next.js/issues/4501 shows `yarn dev` and `yarn build` works correctly. but `yarn test` will break.\r\n\r\nBut I have no idea to address the problem."}}
{"actor":{"display_login":"blackbing"}}