nuxt-ui-pro/dashboard

SSR breaks because of createSharedComposable

ilrein opened this issue · 1 comments

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

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