{"record":{"id":"0a0829fdcfbff9b6","repo":"vercel/next.js","slug":"getstaticpaths-was-added-without-a-getstaticprops","errorCode":null,"errorMessage":"getStaticPaths was added without a getStaticProps in ${pathname}. Without getStaticProps, getStaticPaths does nothing","messagePattern":"getStaticPaths was added without a getStaticProps in (.+?)\\. Without getStaticProps, getStaticPaths does nothing","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/next/src/server/render.tsx","lineNumber":602,"sourceCode":"  if (getServerSideProps && isSSG) {\n    throw new Error(SERVER_PROPS_SSG_CONFLICT + ` ${pathname}`)\n  }\n\n  if (getServerSideProps && renderOpts.nextConfigOutput === 'export') {\n    throw new Error(\n      'getServerSideProps cannot be used with \"output: export\". See more info here: https://nextjs.org/docs/advanced-features/static-html-export'\n    )\n  }\n\n  if (getStaticPaths && !pageIsDynamic) {\n    throw new Error(\n      `getStaticPaths is only allowed for dynamic SSG pages and was found on '${pathname}'.` +\n        `\\nRead more: https://nextjs.org/docs/messages/non-dynamic-getstaticpaths-usage`\n    )\n  }\n\n  if (!!getStaticPaths && !isSSG) {\n    throw new Error(\n      `getStaticPaths was added without a getStaticProps in ${pathname}. Without getStaticProps, getStaticPaths does nothing`\n    )\n  }\n\n  if (isSSG && pageIsDynamic && !getStaticPaths) {\n    throw new Error(\n      `getStaticPaths is required for dynamic SSG pages and is missing for '${pathname}'.` +\n        `\\nRead more: https://nextjs.org/docs/messages/invalid-getstaticpaths-value`\n    )\n  }\n\n  let asPath: string = renderOpts.resolvedAsPath || (req.url as string)\n\n  if (process.env.__NEXT_DEV_SERVER) {\n    const { isValidElementType } =\n      require('next/dist/compiled/react-is') as typeof import('next/dist/compiled/react-is')\n    if (!isValidElementType(Component)) {\n      throw new Error(","sourceCodeStart":584,"sourceCodeEnd":620,"githubUrl":"https://github.com/vercel/next.js/blob/89d017eac43ebf4742ed2b58d3c1373b70283b69/packages/next/src/server/render.tsx#L584-L620","documentation":"Guard in renderToHTMLImpl: getStaticPaths is exported but the page is not SSG (no getStaticProps/getStaticProps data-fetching is present), so the paths getStaticPaths enumerates are never consumed. The check fires because getStaticPaths only takes effect when paired with getStaticProps on the same page.","triggerScenarios":"Thrown at packages/next/src/server/render.tsx:604 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Add a `getStaticProps` export alongside `getStaticPaths`, or remove `getStaticPaths` since it has no effect without it."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"89d017eac43ebf4742ed2b58d3c1373b70283b69","analyzedAt":"2026-08-19T02:10:13.922Z","contentChangedAt":"2026-08-19T02:10:13.922Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}