{"id":16528557,"url":"https://github.com/tobilen/mui5-sc-workspaces-issue","last_synced_at":"2026-06-05T06:31:24.291Z","repository":{"id":96318895,"uuid":"424774911","full_name":"tobilen/mui5-sc-workspaces-issue","owner":"tobilen","description":null,"archived":false,"fork":false,"pushed_at":"2021-11-05T13:31:25.000Z","size":62374,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-01T05:54:35.302Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://github.com/mui-org/material-ui/issues/29516","language":"TypeScript","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/tobilen.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":"2021-11-04T23:55:56.000Z","updated_at":"2021-11-05T00:26:16.000Z","dependencies_parsed_at":"2023-04-12T20:24:53.931Z","dependency_job_id":null,"html_url":"https://github.com/tobilen/mui5-sc-workspaces-issue","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tobilen/mui5-sc-workspaces-issue","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tobilen%2Fmui5-sc-workspaces-issue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tobilen%2Fmui5-sc-workspaces-issue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tobilen%2Fmui5-sc-workspaces-issue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tobilen%2Fmui5-sc-workspaces-issue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tobilen","download_url":"https://codeload.github.com/tobilen/mui5-sc-workspaces-issue/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tobilen%2Fmui5-sc-workspaces-issue/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33932048,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-05T02:00:06.157Z","response_time":120,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-11T17:40:50.914Z","updated_at":"2026-06-05T06:31:24.247Z","avatar_url":"https://github.com/tobilen.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Summary\n\nShows a problem when combining:\n- Material UI V5\n- mui styled-components engine\n- Nextjs SSR\n- yarn berry (a.k.a. yarn modern or yarn 2/3) workspaces\n\n\n### Reproduce\n1. Check out repo\n2. run `yarn`\n3. run `yarn dev`\n4. visit http://localhost:3000/\n\nYou will get a page with a properly sized material ui icon in the center:\n![dev screenshot](dev.png)\n\n5. run `yarn build`\n6. run `yarn start`\n7. visit http://localhost:3000/ again\n\nNow the icon does not have any styles attached to it and takes on the full screen width.\n![prod screenshot](prod.png)\n\n\n### Fix\n1. Remove the `styled-components` dependency from the root `package.json`:\n```diff\n    \"start\": \"yarn workspace @mui5-sc-workspaces-issue/next start\"\n  },\n  \"resolutions\": {\n    \"@mui/styled-engine\": \"npm:@mui/styled-engine-sc@5.0.4\"\n  },\n  \"dependencies\": {\n-    \"styled-components\": \"^5.3.1\"\n  },\n  \"devDependencies\": {\n    \"@types/node\": \"^16.11.6\",\n```\n2. Repeat the steps above. This time, the icon styles get applied on the prod build as well.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftobilen%2Fmui5-sc-workspaces-issue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftobilen%2Fmui5-sc-workspaces-issue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftobilen%2Fmui5-sc-workspaces-issue/lists"}