Skip to content

🐞[Bug]: Invalid noIndex prop on Layout in changelog page causes TypeScript error #2518

Closed

Description

@bobby404-K

Describe the bug

In src/pages/changelog/index.tsx at line 152, <Layout> is passed an invalid noIndex prop:

<Layout
  title="Changelog"
  description="Stay up-to-date with what's new at recode hive."
  noIndex
>

When running npm run typecheck (tsc), this fails with TypeScript error TS2769:

src/pages/changelog/index.tsx(152,7): error TS2769: No overload matches this call.
  Overload 1 of 2, '(props: Props): ReactNode', gave the following error.
    Type '{ children: Element; title: string; description: string; noIndex: true; }' is not assignable to type 'IntrinsicAttributes & Props'.
      Property 'noIndex' does not exist on type 'IntrinsicAttributes & Props'.

Furthermore, because Docusaurus @theme/Layout does not recognize or support a noIndex prop, this prop is ignored at runtime and fails to inject <meta name="robots" content="noindex, nofollow" /> into the document head, allowing search engines to index the changelog page.

Expected behavior

noIndex should not be passed as a prop to <Layout>. Instead, <Head><meta name="robots" content="noindex, nofollow" /></Head> from @docusaurus/Head should be rendered inside <Layout> so that TypeScript compiles cleanly and the robots noindex directive is properly emitted into the document head.

Activity

  1. github-actions commented on Nov 14, 2026

    @github-actions

    Thanks for opening this issue. To help maintainers review it faster, please add the missing details below:

    • Fill in the "Describe the bug" section.
    • Fill in the "Expected behavior" section.
  2. github-actions commented on Nov 14, 2026

    @github-actions

    Thanks for opening this issue! 🎉 We'll look into it as soon as possible, estimated time for response is 5–8 hrs.

    Don't raise PR unless assigned to you.

    In the meantime, please provide all necessary details and context to your issue — screenshots or videos of your changes help speed up the review and assignment. If you have questions, reach out to LinkedIn. Your contributions are highly appreciated!😊

    Note: I maintain the repo issue every day twice at 8:00 AM IST and 9:00 PM IST. If your issue goes stale for more than one day, you can tag and comment on this same issue by tagging @sanjay-kv.

    We are here to help you on this journey of open source. Consistent contributions are eligible for sponsorship 💰

    🎁 check our list of amazing people we sponsored so far: GitHub Sponsorship. ✨

    📚Resources which can help you know more about Github 👇🏻

    1. End to End GitHub Beginner Playlist: GitHub Playlist.

    2. Build your GitHub Profile: GitHub Profile Optimisation.

    3. GitHub Handbook for dummies: GitHub Blog for Beginners.

  3. bobby404-K commented on Nov 14, 2026

    @bobby404-K
    MemberAuthor

    assign me @sanjay-kv

  4. sanjay-kv commented on Nov 15, 2026

    @sanjay-kv
    Member

    its intentional. we put no index

  5. github-actions commented on Nov 15, 2026

    @github-actions

    ✅ This issue has been closed. Thank you for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    level 110 pointsrecodethis is label for leaderboard

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions