Skip to content

Quasar dev (mode SSR) Unhandled error at setup function #15708

Closed Answered by GuillaumeChk
GuillaumeChk asked this question in CLI - SSR mode
Discussion options

You must be logged in to vote

Well, it was just the use of window (window.onscroll() for example)

Fixed it by doing it only Client side, not server side

if (process.env.CLIENT) {
   window; // do whatever with window
}

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by GuillaumeChk
Comment options

You must be logged in to vote
2 replies
@rstoenescu
Comment options

@jdiaz-stp
Comment options

Comment options

You must be logged in to vote
4 replies
@jdiaz-stp
Comment options

@rstoenescu
Comment options

@jdiaz-stp
Comment options

@rstoenescu
Comment options

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