{"action":"created","issue":{"url":"https://api.github.com/repos/styled-components/styled-components/issues/1076","repository_url":"https://api.github.com/repos/styled-components/styled-components","labels_url":"https://api.github.com/repos/styled-components/styled-components/issues/1076/labels{/name}","comments_url":"https://api.github.com/repos/styled-components/styled-components/issues/1076/comments","events_url":"https://api.github.com/repos/styled-components/styled-components/issues/1076/events","html_url":"https://github.com/styled-components/styled-components/issues/1076","id":249133632,"node_id":"MDU6SXNzdWUyNDkxMzM2MzI=","number":1076,"title":"Using styled-components in a monorepo","user":{"login":"wmdmark","id":50728,"node_id":"MDQ6VXNlcjUwNzI4","avatar_url":"https://avatars1.githubusercontent.com/u/50728?v=4","gravatar_id":"","url":"https://api.github.com/users/wmdmark","html_url":"https://github.com/wmdmark","followers_url":"https://api.github.com/users/wmdmark/followers","following_url":"https://api.github.com/users/wmdmark/following{/other_user}","gists_url":"https://api.github.com/users/wmdmark/gists{/gist_id}","starred_url":"https://api.github.com/users/wmdmark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wmdmark/subscriptions","organizations_url":"https://api.github.com/users/wmdmark/orgs","repos_url":"https://api.github.com/users/wmdmark/repos","events_url":"https://api.github.com/users/wmdmark/events{/privacy}","received_events_url":"https://api.github.com/users/wmdmark/received_events","type":"User","site_admin":false},"labels":[{"id":665472720,"node_id":"MDU6TGFiZWw2NjU0NzI3MjA=","url":"https://api.github.com/repos/styled-components/styled-components/labels/needs%20more%20info%20:raised_hand_with_fingers_splayed:","name":"needs more info :raised_hand_with_fingers_splayed:","color":"fef2c0","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":38,"created_at":"2017-08-09T19:18:11Z","updated_at":"2018-06-27T20:54:37Z","closed_at":"2018-06-21T00:36:47Z","author_association":"NONE","body":"## Version\r\n\\> 2.0\r\n\r\n## Reproduction\r\n\r\nWe have a UI library built with styled-components that is for use by our team internally as well as with external developers. While this library depends on styled-components, it _does not_ bundle styled components as part of the npm distribution.\r\n\r\n## Steps to reproduce\r\n\r\nInstall an npm library that exports components built with styled-components in a React project that also uses styled-component (Create React App in our case)\r\n\r\n## Expected Behavior\r\n\r\n`styled-components` should work for both the \"local\" React app and the imported library components.\r\n\r\n## Actual Behavior\r\n\r\nAs soon as the library components are imported to the local React app, the local apps styled-components stop working. \r\n\r\nI'm guessing this is related to #1032. The temporary fix we've found is to downgrade to 1.4. \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/styled-components/styled-components/issues/comments/400825745","html_url":"https://github.com/styled-components/styled-components/issues/1076#issuecomment-400825745","issue_url":"https://api.github.com/repos/styled-components/styled-components/issues/1076","id":400825745,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMDgyNTc0NQ==","user":{"login":"wmdmark","id":50728,"node_id":"MDQ6VXNlcjUwNzI4","avatar_url":"https://avatars1.githubusercontent.com/u/50728?v=4","gravatar_id":"","url":"https://api.github.com/users/wmdmark","html_url":"https://github.com/wmdmark","followers_url":"https://api.github.com/users/wmdmark/followers","following_url":"https://api.github.com/users/wmdmark/following{/other_user}","gists_url":"https://api.github.com/users/wmdmark/gists{/gist_id}","starred_url":"https://api.github.com/users/wmdmark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wmdmark/subscriptions","organizations_url":"https://api.github.com/users/wmdmark/orgs","repos_url":"https://api.github.com/users/wmdmark/repos","events_url":"https://api.github.com/users/wmdmark/events{/privacy}","received_events_url":"https://api.github.com/users/wmdmark/received_events","type":"User","site_admin":false},"created_at":"2018-06-27T20:54:37Z","updated_at":"2018-06-27T20:54:37Z","author_association":"NONE","body":"@probablyup React does not have that issue... we're using React + Lerna in our libs just fine with no zero additional config to make it work (same with glamorous). It's only styled-components post 2.0 giving us this issue (and not just us based on the comments above). "}}
{"actor":{"display_login":"wmdmark"}}