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

Selective client in a v-for generates many client component references #27210

Open
Rigo-m opened this issue May 14, 2024 · 1 comment
Open

Selective client in a v-for generates many client component references #27210

Rigo-m opened this issue May 14, 2024 · 1 comment

Comments

@Rigo-m
Copy link
Contributor

Rigo-m commented May 14, 2024

Environment

  • Operating System: Darwin
  • Node Version: v20.12.2
  • Nuxt Version: 3.11.2
  • CLI Version: 3.11.1
  • Nitro Version: 2.9.6
  • Package Manager: bun@1.1.7
  • Builder: -
  • User Config: devtools, experimental
  • Runtime Modules: -
  • Build Modules: -

Reproduction

https://github.com/Rigo-m/nuxt-selective-client-bug

Describe the bug

image
Cycling through a server component which contains a client component selectively hydrated breaks the page in the way which is shown above.
The moveTeleport function fails with this error:
Uncaught (in promise) TypeError: Failed to execute 'insertBefore' on 'Node': parameter 1 is not of type 'Node'.

@huang-julien any idea on what's happening here?

Additional context

No response

Logs

No response

@Ev357
Copy link

Ev357 commented May 27, 2024

Describe the bug

I think i have a very similar issue when rendering multiple server components at once like this:

<div class="flex flex-col gap-2">
  <CatGenerator />
  <CatGenerator />
</div>

Reproduction

https://github.com/Ev357/nuxt-selective-client-bug

Environment

  • Operating System: Ubuntu
  • Bun Version: 1.1.8
  • Nuxt Version: 3.11.2
  • CLI Version: 3.11.1
  • Nitro Version: 2.9.6
  • Package Manager: bun@1.1.8
  • User Config: devtools, experimental

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