question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug]: Full SSR support

See original GitHub issue

What package within Headless UI are you using?

@headlessui/vue

What version of that package are you using?

v1.2

What browser are you using?

N/A

Reproduction repository

None

Describe your issue

Popover component is using “window” and thus SSR is not working. I tried to use Popover with inertiajs + SSR and had the error : ReferenceError: window is not defined

Would it be possible to make it work with SSR ?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:4
  • Comments:10 (1 by maintainers)

github_iconTop GitHub Comments

5reactions
thalesagapitocommented, Jun 12, 2021

This is not the only instance of this problem, Selects and Dialogs also rely on client-only properties. While I don’t think this is a bug, (because the Vue docs don’t mention SSR at all) I believe the documentation should be clearer about SSR support. Maybe a dedicated section in the docs explaining which components work and if there are any plans to improve SSR support in Vue.

3reactions
morgan4080commented, Sep 28, 2021

yarn add @headlessui/vue@dev package still has the same error

Read more comments on GitHub >

github_iconTop Results From Across the Web

[NA] Bug with SSR coins : r/grandorder - Reddit
In this case I'd really want the proper amount of coins given to me since quartz won't help me unlock Summer Tama's skills...
Read more >
Warning! GAME BREAKING SSR Weapon Box Bug ... - YouTube
Everyone should be closing in on receiving their SSR selector in Tower of Fantasy; however there has been a game breaking bug that...
Read more >
Logging and error management best practices in SSR apps
Handle errors and log them gracefully in your next web app with these best practice guidelines with examples using Next.js and Nuxt.js.
Read more >
Your Space | Campus Housing | University of Illinois Chicago
All contracts, with the exception of SSR, are for the entire Academic Year ... A Campus Housing staff member will also describe the...
Read more >
SSR 5.4 Release Notes | SSN Docs
Individual services and service policies can be configured on the SSR to allow or deny access to an entire domain category, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found