{"id":16222137,"url":"https://github.com/hugodf/nextjs-error-serverside-props","last_synced_at":"2026-06-17T21:32:14.251Z","repository":{"id":85774052,"uuid":"556644631","full_name":"HugoDF/nextjs-error-serverside-props","owner":"HugoDF","description":null,"archived":false,"fork":false,"pushed_at":"2022-10-24T08:44:17.000Z","size":61,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-05T23:04:12.963Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/HugoDF.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":"2022-10-24T08:35:32.000Z","updated_at":"2022-10-24T08:42:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"c9ec6c39-06d6-4b0e-b1e6-ed4f4e09b0c5","html_url":"https://github.com/HugoDF/nextjs-error-serverside-props","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/HugoDF/nextjs-error-serverside-props","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HugoDF%2Fnextjs-error-serverside-props","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HugoDF%2Fnextjs-error-serverside-props/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HugoDF%2Fnextjs-error-serverside-props/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HugoDF%2Fnextjs-error-serverside-props/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HugoDF","download_url":"https://codeload.github.com/HugoDF/nextjs-error-serverside-props/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HugoDF%2Fnextjs-error-serverside-props/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34466928,"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-17T02:00:05.408Z","response_time":127,"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-10T12:11:22.884Z","updated_at":"2026-06-17T21:32:14.236Z","avatar_url":"https://github.com/HugoDF.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Next.js pageProps empty client-side for `_error` page reproduction\n\nIssue: \n- `pageProps = {}` client-side for `_error`\n\nBisect:\n- Last working version: 12.2.0, see [error-serverside-props-next-12.2.0](./error-serverside-props-next-12.2.0)\n  - `cd error-serverside-props-next-12.2.0 \u0026\u0026 yarn build \u0026\u0026 yarn start`\n  - open the Next.js URL\n  - Expected behaviour `Next stars: 94257` (number might change)\n- First broken version: 12.2.1, see [error-serverside-props-next-12.2.1](./error-serverside-props-next-12.2.1)\n  - `cd error-serverside-props-next-12.2.1 \u0026\u0026 yarn build \u0026\u0026 yarn start`\n  - open the Next.js URL\n  - Expected behaviour `Next stars: 94257` (number might change)\n  - Actual behaviour: \n    - `Next stars: 94257` populated properly on SSR pass\n    - when the page JavaScript kicks in, it gets replaced with `Next stars:` (no more star count)\n- issue is also present in canary version (12.3.1-canary), see [error-serverside-props-next-canary](./error-serverside-props-next-canary)\n- Comparison between working and broken releases: https://github.com/vercel/next.js/compare/v12.2.0...v12.2.1\n- likely breaking PR/commit:\n  - https://github.com/vercel/next.js/pull/21240/files\n  - https://github.com/vercel/next.js/commit/69f8024aa1cdef3125113c0e6e3cb4ec7c44fe8a\n  - key change https://github.com/vercel/next.js/commit/69f8024aa1cdef3125113c0e6e3cb4ec7c44fe8a#diff-2433946f9a058f1b070138d12c20f10a9128e46408033629181f9f7fc3b9b9b2\n  - change description: replacing the props (including pageProps) with the output of `Error.getInitialProps` unless the error was a \"throw during render\"\n  - effect: we don't have getInitialProps on App or Error component, props are being set to `{}` (see here https://github.com/vercel/next.js/blob/92254d137ad87f7b48d3305ebf50751e8c68f8e6/packages/next/shared/lib/utils.ts#L367-L375)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhugodf%2Fnextjs-error-serverside-props","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhugodf%2Fnextjs-error-serverside-props","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhugodf%2Fnextjs-error-serverside-props/lists"}