Skip to content

🐛 Bug: TableOfContent component throws warning in dev console #760

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
DarhkVoyd opened this issue Jun 13, 2024 · 1 comment · Fixed by #763
Closed

🐛 Bug: TableOfContent component throws warning in dev console #760

DarhkVoyd opened this issue Jun 13, 2024 · 1 comment · Fixed by #763
Assignees
Labels
🐛 Bug Indicates that the issue is a bug or defect. GSoD Google Season of Docs

Comments

@DarhkVoyd
Copy link
Member

Describe the bug

The TableOfContent component throws various warning in the dev console during development mode. There might be a minor bug in the implementation of this custom component.

The warnings thrown in the console are:

  1. Warning: is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.
  2. Warning: The tag is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.

Steps To Reproduce

  1. Run yarn dev to start local instance in development mode
  2. Go to http://localhost:3000/learn/getting-started-step-by-step
  3. Check dev console

Expected Behavior

There must not be any warnings in the dev console.

Screenshots

Screenshot 2024-06-13 at 3 56 42 PM (2)

Device Information [optional]

- OS: MacOS
- Browser: Google Chrome
- version:

Are you working on this issue?

No

Do you think this work might require an [Architectural Decision Record (ADR)]? (significant or noteworthy)

No

@DarhkVoyd DarhkVoyd added 🐛 Bug Indicates that the issue is a bug or defect. Status: Triage This is the initial status for an issue that requires triage. labels Jun 13, 2024
@benjagm benjagm moved this to Waiting for Contributions in Website Contributor Board Jun 13, 2024
@DhairyaMajmudar
Copy link
Member

Fixed this issue in PR #763 : )

@DhairyaMajmudar DhairyaMajmudar self-assigned this Jun 17, 2024
@DhairyaMajmudar DhairyaMajmudar added GSoD Google Season of Docs and removed Status: Triage This is the initial status for an issue that requires triage. labels Jun 17, 2024
@github-project-automation github-project-automation bot moved this from Waiting for Contributions to Ready to Review in Website Contributor Board Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Indicates that the issue is a bug or defect. GSoD Google Season of Docs
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants