nuxt-ui-pro / dashboard

A dashboard template made with Vue and Nuxt UI Pro.
https://dashboard-template.nuxt.dev
414 stars 93 forks source link

SSR breaks because of createSharedComposable #6

Closed ilrein closed 7 months ago

ilrein commented 8 months ago

I noticed when deploying this to cloudflare pages, and was trying to isolate the root cause. Eventually I found that the useDashboard composable was the issue. I suspect that createSharedComposable is the cause of the problem.

EDIT

Digging in some more it seems like the problem is defineShortcuts which seems to be clientside only:

Screen Shot 2024-02-28 at 11 16 38 AM
benjamincanac commented 7 months ago

I don't understand how you can have this error, there is a process.client to check this: https://github.com/nuxt/ui/blob/dev/src/runtime/composables/useShortcuts.ts#L6