Skip to content

Bug(website): React key error on internal pages of website #9333

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
4 tasks done
abrahamguo opened this issue Jun 11, 2024 · 0 comments
Closed
4 tasks done

Bug(website): React key error on internal pages of website #9333

abrahamguo opened this issue Jun 11, 2024 · 0 comments
Labels
accepting prs Go ahead, send a pull request that resolves this issue locked due to age Please open a new issue if you'd like to say more. See https://typescript-eslint.io/contributing. package: website Issues related to the @typescript-eslint website refactor PRs that refactor code only

Comments

@abrahamguo
Copy link
Contributor

abrahamguo commented Jun 11, 2024

Before You File a Bug Report Please Confirm You Have Done The Following...

  • I have tried restarting my IDE and the issue persists.
  • I have updated to the latest version of the packages.
  • I have searched for related issues and found none that matched my issue.
  • I have read the FAQ and my problem is not listed.

Relevant Package

website

Playground Link

No response

Repro Code

  1. yarn
  2. cd packages/website && yarn start
  3. Navigate to Docs (/getting-started), Rules (/rules) or Blog (/blog)

ESLint Config

No response

tsconfig

No response

Expected Result

No errors.

Actual Result

Error in the browser console:

react-jsx-runtime.development.js:87 Warning: A props object containing a "key" prop is being spread into JSX:
  let props = {key: someKey, className: ..., children: ..., style: ...};
  <span {...props} />
React keys must be passed directly to JSX without using spread:
  let props = {className: ..., children: ..., style: ...};
  <span key={someKey} {...props} />
    at CodeBlockLine (webpack-internal:///../../node_modules/@docusaurus/theme-classic/lib/theme/CodeBlock/Line/index.js:15:28)

Additional Info

No response

Versions

main branch

@abrahamguo abrahamguo added bug Something isn't working triage Waiting for team members to take a look labels Jun 11, 2024
@JoshuaKGoldberg JoshuaKGoldberg added refactor PRs that refactor code only accepting prs Go ahead, send a pull request that resolves this issue package: website Issues related to the @typescript-eslint website and removed bug Something isn't working triage Waiting for team members to take a look labels Jun 12, 2024
@github-actions github-actions bot added the locked due to age Please open a new issue if you'd like to say more. See https://typescript-eslint.io/contributing. label Jul 18, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
accepting prs Go ahead, send a pull request that resolves this issue locked due to age Please open a new issue if you'd like to say more. See https://typescript-eslint.io/contributing. package: website Issues related to the @typescript-eslint website refactor PRs that refactor code only
Projects
None yet
Development

No branches or pull requests

2 participants