Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Server Side Rendering: Nuxt 3 support #2244

Closed as not planned
Closed as not planned
@jakhsu

Description

@jakhsu

Nuxt 3 support

Tried to use this in Nuxt 3 but seems like it doesn't work out-of-the-box

Your environment

gridstack: "^7.2.3"
stackblitz

Steps to reproduce

npm install --save gridstack
https://stackblitz.com/edit/nuxt-starter-yuoyxf?file=package.json,app.vue

Expected behavior

shows error document is not defined, which I assume is due to Nuxt's SSR, but wrapping the divs in <ClientOnly> component doesn't work and not sure how to deal with the script part.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions