{"id":15837952,"url":"https://github.com/damassi/styled-components-ssr-issue","last_synced_at":"2025-04-01T16:42:12.897Z","repository":{"id":150231779,"uuid":"165590723","full_name":"damassi/styled-components-ssr-issue","owner":"damassi","description":"Styled Components 4.0.3 issue repro where `collectStyles` fails on symlinked modules","archived":false,"fork":false,"pushed_at":"2019-01-14T05:30:17.000Z","size":30,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-07T10:49:10.642Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://github.com/styled-components/styled-components/issues/2322","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/damassi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-01-14T03:40:21.000Z","updated_at":"2019-01-14T05:30:19.000Z","dependencies_parsed_at":"2023-06-15T05:30:41.520Z","dependency_job_id":null,"html_url":"https://github.com/damassi/styled-components-ssr-issue","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/damassi%2Fstyled-components-ssr-issue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/damassi%2Fstyled-components-ssr-issue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/damassi%2Fstyled-components-ssr-issue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/damassi%2Fstyled-components-ssr-issue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/damassi","download_url":"https://codeload.github.com/damassi/styled-components-ssr-issue/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246672585,"owners_count":20815425,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-05T16:00:18.423Z","updated_at":"2025-04-01T16:42:12.862Z","avatar_url":"https://github.com/damassi.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## styled-components@4.0.3\n\nThis reproduces an issue where styled-components@4.0.3 fails to collect styles (`ServerStyleSheet#collectStyles`) from modules that are `yarn link`d.\n\n**Issue**: https://github.com/styled-components/styled-components/issues/2322\n\n```sh\nyarn setup\nyarn start\n```\n\n### Output:\n\n```sh\n[/3rd-party-lib]\n\n  This is the main component library. Components are created here and exported\n  for consumption in other apps.\n\n  When developing locally, this module is accessed from other modules via yarn link.\n\n  Running `collectStyles` from here will properly extract CSS:\n\n  CSS:\n  \u003cstyle data-styled=\"UoSJW jSiEbM cyinBP gNxrLP fDAdfP\" data-styled-version=\"4.0.3\"\u003e\n    /* sc-component-id: sc-bdVaJa */\n    .sc-bdVaJa {} .UoSJW{width:100%;}\n    /* sc-component-id: sc-bwzfXH */\n    .sc-bwzfXH {} .jSiEbM{color:blue;}\n    /* sc-component-id: sc-htpNat */\n    .sc-htpNat {} .cyinBP{color:green;}\n    /* sc-component-id: sc-bxivhb */\n    .sc-bxivhb {} .gNxrLP{color:red;}\n    /* sc-component-id: sc-ifAKCX */\n    .sc-ifAKCX {} .fDAdfP{color:yellow;}\u003c/style\u003e\n\n  HTML:\n  \u003cdiv class=\"sc-bdVaJa UoSJW\"\u003e\u003cdiv class=\"sc-bwzfXH jSiEbM\"\u003eHello\u003c/div\u003e\u003cdiv class=\"sc-htpNat cyinBP\"\u003eHow\u003c/div\u003e\u003cdiv class=\"sc-bxivhb gNxrLP\"\u003eAre\u003c/div\u003e\u003cdiv class=\"sc-ifAKCX fDAdfP\"\u003eYou\u003c/div\u003e\u003c/div\u003e\n\n\n  -------------------\n\n  [/app]\n\n  This is an app that imports the linked module /3rd-party-lib for use.\n\n  Running `collectStyles` from here fails to collect styles since the instance\n  of styled-components that created the components is located in a linked module.\n\n  CSS:\n\n\n  HTML:\n  \u003cdiv class=\"sc-bdVaJa UoSJW\"\u003e\u003cdiv class=\"sc-bwzfXH jSiEbM\"\u003eHello\u003c/div\u003e\u003cdiv class=\"sc-htpNat cyinBP\"\u003eHow\u003c/div\u003e\u003cdiv class=\"sc-bxivhb gNxrLP\"\u003eAre\u003c/div\u003e\u003cdiv class=\"sc-ifAKCX fDAdfP\"\u003eYou\u003c/div\u003e\u003c/div\u003e\n\n\n  -------------------\n\n  [/]\n\n  This is the project root that imports /app and /3rd-party-lib, and yarn links.\n\n  Running `collectStyles` from here fails to collect styles since the  instance\n  of styled-components that created the components is located in a linked module.\n\n  CSS:\n\n\n  HTML:\n  \u003cdiv class=\"sc-bdVaJa UoSJW\"\u003e\u003cdiv class=\"sc-bwzfXH jSiEbM\"\u003eHello\u003c/div\u003e\u003cdiv class=\"sc-htpNat cyinBP\"\u003eHow\u003c/div\u003e\u003cdiv class=\"sc-bxivhb gNxrLP\"\u003eAre\u003c/div\u003e\u003cdiv class=\"sc-ifAKCX fDAdfP\"\u003eYou\u003c/div\u003e\u003c/div\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdamassi%2Fstyled-components-ssr-issue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdamassi%2Fstyled-components-ssr-issue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdamassi%2Fstyled-components-ssr-issue/lists"}