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

[Server components] Hydration mismatch and failed teleport with nuxt-client and nuxtlink #28004

Open
Rigo-m opened this issue Jul 3, 2024 · 2 comments

Comments

@Rigo-m
Copy link
Contributor

Rigo-m commented Jul 3, 2024

Environment

  • Operating System: Darwin
  • Node Version: v20.12.2
  • Nuxt Version: 3.12.3
  • CLI Version: 3.12.0
  • Nitro Version: 2.9.7
  • Package Manager: bun@1.1.13
  • Builder: -
  • User Config: devtools, modules, compatibilityDate, i18n, experimental
  • Runtime Modules: @nuxtjs/i18n@8.3.1
  • Build Modules: -

Reproduction

https://github.com/Rigo-m/nuxt-link-hydration-mismatch

Describe the bug

There's an hydration error due to the nuxt-active-class being applied client side and not server side, but also there are some failed teleports in console in the nuxtlink inside a component marked with nuxt-client.
This leads also to the links being treated as normal html anchors

Additional context

No response

Logs

No response

@they-cloned-me
Copy link

Can you create a repro on Stackblitz or CodeSandbox

@Rigo-m
Copy link
Contributor Author

Rigo-m commented Jul 9, 2024

Can you create a repro on Stackblitz or CodeSandbox

Sure. You can take the github reproduction repository that I made and substitute github.com with stackblitz.com/github, like this
https://stackblitz.com/github/Rigo-m/nuxt-link-hydration-mismatch

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

No branches or pull requests

3 participants