-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Nuxt 3 - window is not defined #502
Comments
You should init it in onMounted(() => nextTick(()=>{..})) |
same issue |
Same issue, nuxt 3.8.0. Tried this, didn't solve it for me. @RayJason
Error message -
and terminal is showing me this -
|
Same issue for me in nuxt 3.8.0. It's from a component that's used in a route that is supposed to be set to { ssr: false }... so window should be available in it?
|
Anyone have a solution , I'm getting the same error. |
Try to use this plugin to import the library: https://github.com/bluwy/vite-plugin-iso-import |
This works for me:
I'm using:
|
Hello 👋
Nuxt 3 5.2 - window is not defined
The text was updated successfully, but these errors were encountered: