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

Error 500 [Headless UI]: Cannot find ownerDocument for contextElement: null #1429

Closed
TechhDan opened this issue May 10, 2022 · 3 comments · Fixed by #1459
Closed

Error 500 [Headless UI]: Cannot find ownerDocument for contextElement: null #1429

TechhDan opened this issue May 10, 2022 · 3 comments · Fixed by #1459
Assignees

Comments

@TechhDan
Copy link

Package: @headlessui/vue
Package Version: ^1.6.1
Browser: Chrome
Reproduction URL : https://github.com/TechhDan/headlessui-nuxt3-bug

Description: Some of the components are not rendering correct in the Vue environment. I'm getting an error 500 for some of the components. If you look at the reproduction URL repo you can see that localhost:3000/dialog does not work but localhost:3000/disclosure does work. These are both copied directly from the examples.

image

@MrJmpl3
Copy link

MrJmpl3 commented May 10, 2022

I think is a SSR problem, because the problem don't show when the Dialog component is wrapped with ClientOnly component

@kelvin-zhao
Copy link

I'm also having this issue when rendering with AstroJS. Is there a workaround or solution for this?

@thecrypticace
Copy link
Contributor

Hey! Thank you for your bug report!
Much appreciated! 🙏

This should be fixed by #1459, and will be available in the next release.

You can already try it using:

  • npm install @headlessui/vue@insiders.

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

Successfully merging a pull request may close this issue.

4 participants