Skip to content
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

BUG Hydration Errors #113

Open
codingwithmanny opened this issue Feb 20, 2024 · 0 comments
Open

BUG Hydration Errors #113

codingwithmanny opened this issue Feb 20, 2024 · 0 comments

Comments

@codingwithmanny
Copy link
Sponsor Contributor

Context

When creating a new vocs site, the main page has hydration issues.

Steps To Reproduce

  1. Create new project
pnpm create vocs;

# Follow prompts;
  1. Install dependencies
# FROM: ./myproject

pnpm install;
  1. Run vocs
# FROM: ./myproject

pnpm dev;
  1. See errors on main page (see screenshot)

NOTE: This only seems to be on the main page.

Screenshot 2024-02-20 at 11 58 58 AM

Possible Solution

Process of elimination shows that it has something to do with the <HomePage.Logo>

When I change the file and remove Logo it works fine:

---
layout: landing
---

import { HomePage } from 'vocs/components'

<HomePage.Root>
-  <HomePage.Logo />
  <HomePage.Tagline>My Awesome Docs</HomePage.Tagline>
  <HomePage.InstallPackage name="vocs" type="init" />
  <HomePage.Description>This is a description of my documentation website.</HomePage.Description>
  <HomePage.Buttons>
    <HomePage.Button href="/getting-started" variant="accent">Get started</HomePage.Button>
    <HomePage.Button href="https://github.com/wevm/vocs">GitHub</HomePage.Button>
  </HomePage.Buttons>
</HomePage.Root>
Screenshot 2024-02-20 at 12 07 35 PM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant