{"id":19030053,"url":"https://github.com/statico/nextjs-yarn2-getserversideprops-bug","last_synced_at":"2025-10-28T05:06:55.168Z","repository":{"id":136667934,"uuid":"359949288","full_name":"statico/nextjs-yarn2-getserversideprops-bug","owner":"statico","description":null,"archived":false,"fork":false,"pushed_at":"2021-04-20T20:59:54.000Z","size":35,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-02T03:44:23.115Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/statico.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-04-20T20:58:22.000Z","updated_at":"2021-05-07T23:03:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"d7b618e0-a46e-41da-8b49-07f586575486","html_url":"https://github.com/statico/nextjs-yarn2-getserversideprops-bug","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/statico%2Fnextjs-yarn2-getserversideprops-bug","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/statico%2Fnextjs-yarn2-getserversideprops-bug/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/statico%2Fnextjs-yarn2-getserversideprops-bug/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/statico%2Fnextjs-yarn2-getserversideprops-bug/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/statico","download_url":"https://codeload.github.com/statico/nextjs-yarn2-getserversideprops-bug/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240079638,"owners_count":19744725,"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-11-08T21:16:22.075Z","updated_at":"2025-10-28T05:06:50.116Z","avatar_url":"https://github.com/statico.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Yarn 2 \u0026 `getServerSideProps` props test case\n\n## What is this?\n\nReturning `{notFound: true}` in a page's [`getServerSideProps`](https://nextjs.org/docs/basic-features/data-fetching#getserversideprops-server-side-rendering) in Next.js while using Yarn 2 results in the page never loading.\n\n## Prerequisites\n\n- Node 15.13.0\n- Yarn 1.22.10\n\n## Reproduction\n\n1. Clone this\n1. Run `yarn install`\n1. Run `yarn run dev`\n1. Navigate to http://localhost:3000/test which should show the Next.js 404 page, which is expected\n1. Stop the server\n1. Run `yarn set version berry`\n1. Run `yarn install`\n1. Run `yarn run dev`\n1. Navigate to http://localhost:3000/test will hang forever and maybe show Webpack errors on the console\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstatico%2Fnextjs-yarn2-getserversideprops-bug","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstatico%2Fnextjs-yarn2-getserversideprops-bug","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstatico%2Fnextjs-yarn2-getserversideprops-bug/lists"}