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

Quasar, Nuxt3 SSR: window is not defined #11281

Closed
jlucaso1 opened this issue Nov 10, 2021 · 4 comments
Closed

Quasar, Nuxt3 SSR: window is not defined #11281

jlucaso1 opened this issue Nov 10, 2021 · 4 comments
Labels
Qv2 🔝 Quasar v2 issues

Comments

@jlucaso1
Copy link

jlucaso1 commented Nov 10, 2021

Describe the bug
The bug occurs when I try to implement any Quasar plugin.

Codepen/jsFiddle/Codesandbox (required)
StackBlitz Sandbox

Expected behavior
Use Quasar plugins on client only.

Example
nuxtApp.vueApp.use(Quasar, { plugins: ["Notify"] });

Full Error
window is not defined at $id_66d0eb88 (file:///D:/nuxt3-app/.nuxt/dist/server/server.mjs:1772:1154)

Platform (please complete the following information):
Quasar Version: 2.3.1
OS: Windows 11
Node: 16.13.0

@jlucaso1 jlucaso1 added the Qv2 🔝 Quasar v2 issues label Nov 10, 2021
@rstoenescu
Copy link
Member

We do not (yet) offer Nuxt support.

@angelhdzdev
Copy link
Contributor

It's a shame. Quasar seems to want to be exclusive and lock the users down to their ecosystem, instead of letting the user deciding what of its many tools to use. For example, if one only needs the UI, one could only use the components.
They don't add Nuxt 3 support because they want you to use Quasar's SSR. And instead of promoting Vite Plugin, so you can use Quasar in a Vite project, they promote Quasar CLI + Vite the most.

I've been promoting Quasar a lot, but that reply, and all the time I've been trying to get Quasar to work in Nuxt...
it's gonna make me move to Vuetify, which works nice for being in v3.0.0 beta... some hiccups here and there that I can ignore for now.

@pylvr
Copy link

pylvr commented Dec 21, 2022

We do not (yet) offer Nuxt support.

do we now ?

@angelhdzdev
Copy link
Contributor

We do not (yet) offer Nuxt support.

do we now ?

Follow this thread: #11165 (comment)

There's already a non-official Quasar module for Nuxt 3. I'm using it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Qv2 🔝 Quasar v2 issues
Projects
None yet
Development

No branches or pull requests

4 participants